v_scratch/11_structs/heap_structs.v

11 lines
83 B
V

struct Point{
x int
y int
}
pub fn main(){
p := &Point{10,10}
println(p.x)
}