[D typesystem] What is the type of null?

Stanislav Blinov blinov at loniir.ru
Tue Oct 12 07:34:38 PDT 2010


  12.10.2010 17:52, Justin Johansson пишет:
> Given that if a function should return something,
> and that function may return null in, at least
> reference type return scenarios, one would expect that
> "null" has a type.
>
> What is the type of "null" in the D typesystem?
>
> - JJ
>

writeln(typeid(typeof(null))) yields void* :)



More information about the Digitalmars-d mailing list