Notes IV
bearophile
bearophileHUGS at lycos.com
Fri Jan 25 02:33:26 PST 2008
Janice Caron:
> For that matter, it has two meanngs. So wouldn't
> foreach (a; b in c)
> parse as
> foreach (a; (b in c))
> which might actually make sense if c defines opIn_r(). So you'd still
> end up having to distinguish a comma from a semicolon anyway.
But this situation is probably 100 times less common than the normal usage of foreach, so this may produce way less bugs in the code, and you can add ().
Bye,
bearophile
More information about the Digitalmars-d
mailing list