5 ms·
You can get bitten by a similar problem without closures if you stick a loop variable in an array. The loop variable is one address with contents mutating each
by closeparen 6y ago
You can get bitten by a similar problem without closures if you stick a loop variable in an array. The loop variable is one address with contents mutating each iteration.
- masklinn 6y ago> You can get bitten by a similar problem without closures if you stick a loop variable in an array. Surely only if you store it indirectly, otherwise it'll be copied into the array.