Sets the value memory points to back to the default for its type.
Initialize :: (memory: *$T)
Parameters
- memory: *$T
Point :: struct { x := 5; y := 6; }
p: Point;
p.x = 100;
Initialize(*p);
assert(p.x == 5 && p.y == 6);Sets the value memory points to back to the default for its type.
Initialize :: (memory: *$T)
Point :: struct { x := 5; y := 6; }
p: Point;
p.x = 100;
Initialize(*p);
assert(p.x == 5 && p.y == 6);