Closures and loop scope
Adam D. Ruppe
destructionator at gmail.com
Tue Jun 4 12:42:38 PDT 2013
On Tuesday, 4 June 2013 at 19:19:57 UTC, Idan Arye wrote:
> Can this be fixed? *Should* this be fixed?
For what it's worth, Javascript works the same way. So I've come
to the pattern of having a function return a function when it is
looping in both languages.
So while it might not be ideal, it isn't totally unexpected since
other languages do it too.
More information about the Digitalmars-d
mailing list