Null references redux

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Sep 26 20:26:03 PDT 2009


On Sat, Sep 26, 2009 at 11:23 PM, Jeremie Pelletier <jeremiep at gmail.com> wrote:

> There is no such thing as "not being able to happen" :)
>
> Object thisCannotPossiblyBeNullInAnyWayWhatsoever = cast(Object)null;
>
> I seem to be the only one who sees Walter's side of things in this thread
> :o)

Why the hell would the compiler allow that to begin with? Why bother
implementing nonnull references only to allow the entire system to be
broken?



More information about the Digitalmars-d mailing list