determining if array element is null

Alex sascha.orlov at gmail.com
Tue Jun 5 15:57:41 UTC 2018


On Tuesday, 5 June 2018 at 14:52:28 UTC, Timoses wrote:
> Does `int[4] nums = void` work?

Work for what?

If you avoid initialization, then the variable(s) are not 
initialized.

https://dlang.org/spec/declaration.html#void_init


However, an int is not nullable and always contains a value.


More information about the Digitalmars-d-learn mailing list