Delegate, scope and associative array

Vlad Levenfeld via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 3 00:18:01 PDT 2014


I've run across this myself. The workaround I used was to call a 
function from inside the foreach loop, and in that function you 
construct the delegate (with the index variable passed as a 
parameter).


More information about the Digitalmars-d-learn mailing list