Closed arthurhjorth closed 9 years ago
We'd need to create a specific reporter to retrieve the contents of the variable. I actually made this reporter for debugging but then removed.
There's no reason to have this thing though since the parent already has whatever information it's sticking in the variable.
could we automatically add a
let
to the parent when we usels:let
?
Unfortunately, no, since the variable isn't known at compile time. Changing this would probably require extensive changes to the NetLogo compiler.
It seems odd to me that the parent model can't access a ls:let. It seems even odder that you can have two vars - one for the parent, and one for the child - with the same name. How much work would it be to give them access to this? could we automatically add a
let
to the parent when we usels:let
?