I thought variable.init was different from T.init and gave the value of the explicit initializer if one was used. Was I mistaken?:
import std.stdio;
void main()
{
int a = 5;
writeln(a.init); // Outputs 0, not 5
}
I thought variable.init was different from T.init and gave the value of the explicit initializer if one was used. Was I mistaken?:
import std.stdio;
void main()
{
int a = 5;
writeln(a.init); // Outputs 0, not 5
}