reset

Void version of the init() type function.

void
reset
(
T
)
(
ref T t
)

Parameters

T

the argument type, likely to be infered.

t
Type: T

a reference to a T.

Examples

1 uint a = 159;
2 string b = "bla";
3 a.reset;
4 assert(a == 0);
5 b.reset;
6 assert(b == "");

Meta