Please note the different behavior between NetLogo and NetLogo Web. Specifically, if we assign my-variable for each turtle, in NLW both will work (but essentially still deviant from NetLogo Desktop behavior). Otherwise, my-variable would simply become undefined (!) result in random error messages when mistakenly used elsewhere.
Doing a runtime check on breed-own variables might be expensive. Could we implement a static check?
Hi,
This issue is proposed by @jiajia06403. Here is my reproduction:
Please note the different behavior between NetLogo and NetLogo Web. Specifically, if we assign
my-variable
for each turtle, in NLW both will work (but essentially still deviant from NetLogo Desktop behavior). Otherwise,my-variable
would simply become undefined (!) result in random error messages when mistakenly used elsewhere.Doing a runtime check on breed-own variables might be expensive. Could we implement a static check?