My Kingdom For ...
Janice Caron
caron800 at googlemail.com
Thu Feb 21 14:16:00 PST 2008
On 21/02/2008, Ary Borenszweig <ary at esperanto.org.ar> wrote:
> >> It must only be an error if c is a class reference. If it's a pointer,
> >> it's ok
>
> > Why? if (p is null) works for pointers too
>
> That's what I said: "If it's a pointer, it's ok" (don't show a
> warning/error). Or are you saying something completely different?
I guess I was. I suppose I was saying, let's make "== null" illegal
for /all/ types. "== null" just isn't needed, because in /all/ cases,
"is null" works.
More information about the Digitalmars-d
mailing list