After some thought, the 2nd example didn't capture the i as closure The i was simply used as value for thearg field in MyObpr, theproc only invoked the argument that fed to it.
Is it because of GC-safety so closure cannot capture it?
After some thought, the 2nd example didn't capture the i as closure The i was simply used as value for thearg field in MyObpr, theproc only invoked the argument that fed to it.
Is it because of GC-safety so closure cannot capture it?