Yet Another Const Proposal

Sönke Ludwig ludwig at informatik_dot_uni-luebeck.de
Fri Dec 7 07:49:37 PST 2007


Janice Caron schrieb:
> 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.
> 

Of course! Should have checked the code before posting..



More information about the Digitalmars-d mailing list