Yet Another Const Proposal

Janice Caron caron800 at googlemail.com
Fri Dec 7 07:36:02 PST 2007


On Dec 7, 2007 3:20 PM, Sönke Ludwig
<ludwig at informatik_dot_uni-luebeck.de> wrote:
> assert( *pc != null ); // fails

Shouldn't that be

    assert(*pc !is null) ?

( *pc != null ) will attempt to call (*pc).opCmp(), and will fall over
if (*pc) is null.




More information about the Digitalmars-d mailing list