Adding the ?. null verification

Etienne via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 18 09:26:10 PDT 2014


> But if you don't add the bool checks you might get segmentation fault.
> Or am I missing something?
>

In D all pointers are zero-filled on initialization so it counts as a 
bool for me and null is the same as if you had a *.init


More information about the Digitalmars-d mailing list