foreach
Ary Borenszweig via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 13 07:11:54 PDT 2014
On 6/12/14, 9:41 PM, Nick Sabalausky wrote:
> On 6/12/2014 8:36 PM, Ary Borenszweig wrote:
>>
>> You normally do that by using names that the grammar doesn't allow as
>> valid identifiers. Then you have a counter and prepend that. This way
>> you never have name collisions.
>
> And doesn't DMD *already* do a lot of that sorta thing already?
>
That's why it surprises me that adding such a trivial feature is not
done because it can lead to many bugs. You have a regressions test
suite. Plus it's really trivial: if there's no loop variable, just
define one automatically.
More information about the Digitalmars-d
mailing list