Test if variable has void value

Andrey saasecondbox at yandex.ru
Wed Aug 22 13:50:07 UTC 2018


Hello,
How to test if variable has void value?

> string text = void;
>if(text == void)
>{
>    writeln("Is void");
>}

Tried this:
>if(is(text == void))
but doesn't work.


More information about the Digitalmars-d-learn mailing list