Basic module

Initialize

procedureSource

Sets the value memory points to back to the default for its type.

Initialize :: (memory: *$T)

Parameters

memory: *$T
Example↗
Point :: struct { x := 5; y := 6; }
p: Point;
p.x = 100;
Initialize(*p);
assert(p.x == 5 && p.y == 6);

See also