!in operator?

Jason House jason.james.house at gmail.com
Fri May 22 18:05:54 PDT 2009


Jeremie Pelletier wrote:

> Why is there no !in operator just like there is a !is operator?
> Is it because this expression evaluates to a pointer to the found element?
> Even so, it would make asserts much easier to write.

That is unfortunately a rather sticky point.  The in operator does not 
return bool.  I think the lack of !in is to encourage writing of efficient 
code.  I'm not really sure though.




More information about the Digitalmars-d mailing list