in reply to Re: Closures and scope of lexicals
in thread Closures and scope of lexicals
Yeah, thanks for the explanation. The key is "all closures reference the same scalar". Somehow I assumed that the closure would use the current value of the scalar (in a new slot). Thanks also to LanX and Hippo for their (similar) explanations!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Closures and scope of lexicals
by jdporter (Paladin) on Oct 31, 2024 at 13:03 UTC | |
Re^3: Closures and scope of lexicals
by LanX (Saint) on Oct 31, 2024 at 03:00 UTC |