My Kingdom For ...
Ary Borenszweig
ary at esperanto.org.ar
Thu Feb 21 14:04:20 PST 2008
Janice Caron escribió:
> 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?
, and in template
> programming, the compiler doesn't always know what p is anyway.
Templates aren't evaluated until they are instantiated, so the compiler
can do the same check only in instantiations.
More information about the Digitalmars-d
mailing list