My Kingdom For ...
bearophile
bearophileHUGS at lycos.com
Thu Feb 21 07:07:58 PST 2008
Gregor Richards:
> 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.
"in" and "!in" may return both bools.
Another solution is to think "in" as an operator, and "!in" as two operators, where ! negates the result of the precedent "in", where "in" returns a pointer. I don't see this as silly :-)
Bye,
bearophile
More information about the Digitalmars-d
mailing list