Keyword to avoid not null references

Namespace rswhite4 at googlemail.com
Mon Apr 23 01:48:46 PDT 2012


> No. The whole point of NotNull is that it should enforce not 
> being null.
> Allowing implicit casting from PossiblyNull to NotNull would 
> break this.

Then i'm further for a keyword that checks an object for not null.
Or you check at runtime to avoid null, e.g. with assert or 
enforce.



More information about the Digitalmars-d-learn mailing list