Is variable void?

codephantom me at noyb.com
Tue Nov 28 06:21:19 UTC 2017


On Tuesday, 28 November 2017 at 05:10:39 UTC, bauss wrote:
> null != void


also...void is a completely useless concept for initialisation.

what can you determine about the nothingness of void? ... nothing.


writeln(typeof(void).stringof); // ?? what do I know now? nothing.

vs

Nullable!int x;
writeln(typeof(x).stringof); // Nullable!int .. now I know 
something.




More information about the Digitalmars-d-learn mailing list