Basic module

New

procedure · 1 overloadSource

Allocates a T with context.allocator and returns a pointer to it.

New :: ($T: Type, $initialized := true) -> *T

Parameters

$T: Type
$initialized := true
set to false to skip setting the new value to its default; its bytes are then whatever the allocator returned.

Returns

*T

See also