Is variable void?

crimaniak crimaniak at gmail.com
Sun Nov 26 21:54:51 UTC 2017


On Saturday, 25 November 2017 at 15:34:21 UTC, John Chapman wrote:
> Is there any way of determining whether a variable has been 
> initialized or not? For example, if something is declared like 
> this:
>
>   int x = void;
>
> can I check if it's void before I use it, say, in a function 
> it's been passed to?

  You can use Nullable!int


More information about the Digitalmars-d-learn mailing list