let
definitions can be accessible to run
outside of their intended scope
#2245
Labels
let
definitions can be accessible to run
outside of their intended scope
#2245
setup
, using the code above2
a
should only be scoped to itsif
block. It seems as if it is getting lifted up to the entire procedure's context, and remains accessible in therun
's context.This strikes me as a minor issue. It's not clear that anyone has a real model that is broken by this. Any problems should be easy for users to work around by renaming a variable or two.
The issue affects both desktop and NLW. Issue #24 seems semi-related. Reported by user tiaotiao on the NetLogo Forum.
The text was updated successfully, but these errors were encountered: