Disallow null references in safe code?

Nick Treleaven ntrel-public at yahoo.co.uk
Sun Feb 2 05:19:35 PST 2014


On 02/02/2014 13:18, Nick Treleaven wrote:
>      auto cn = checkNull(cast(C)null);
>      NotNull!C nn = cn;
>
> obj2 is then null, when it shouldn't be allowed.

Oops, I meant nn, not obj2.


More information about the Digitalmars-d mailing list