foreach on interval index by ref increment

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jan 21 20:34:01 PST 2012


On 1/22/12, bearophile <bearophileHUGS at lycos.com> wrote:
> It's bad code, that relies on a not intuitive special case.
> I suggest you to use a more clean and readable ancient for loop for that
> purpose.
> Relying on magical syntax is not a good idea for production code.

Mr. one-letter-long-variable-names is telling me to write cleaner and
more readable code.

The ref keyword isn't magic, and immutability isn't the answer to everything.


More information about the Digitalmars-d mailing list