!in

bearophile bearophileHUGS at lycos.com
Wed Feb 17 13:10:48 PST 2010


Andrei Alexandrescu:
>Searching an array literal vs. an array variable is not a special case.<

if (5 in [1, 2, 5]) { ... // OK
if (5 in [1, 2, 5].dup) { ... // not OK

If you can't see a special case there you are blind.

Bye,
bearophile



More information about the Digitalmars-d mailing list