My Kingdom For ...

Darryl Bleau user at example.net
Thu Feb 21 08:51:53 PST 2008


Gregor Richards wrote:
> /me boos !in again.
> 
> Walter's argument against !in makes perfect sense, and nobody ever
> acknowledges that. 'in' is not a boolean operation, and it wouldn't be
> good for 'in' to return a pointer and '!in' to return a bool. That's
> just silly.
> 

I don't expect it to return a boolean, I just expect '!' to perform a
not operation. That is, I would expect that:

(a !in b)

Would behave the same as:

(!(a in b))

'a in b' can still return the pointer fine, that makes perfect sense.



More information about the Digitalmars-d mailing list