Spanish CASCADA leaks two variables (doesn't mark them as LOCAL)
A Logo programming environment for Microsoft Windows
Brought to you by:
david_costanzo
CASCADA, the spanish translation of CASCADE, leaks two of its helper variables: cascade.final and cascade.templates as global variables The problem looks to be a copy&paste error. When the English CASCADE was was localized into Spanish, the variables declared by LOCAL were updated to have to "CASCADA" in their names, but the variables, themselves were not.
From startup-1034.logoscript:
LOCAL [CASCADA.templates template.vars CASCADA.final]
HAZ "cascade.templates []
HAZ "template.vars []
HAZ "cascade.final [?1]
Therefore, cascade.templates and cascade.final are not LOCAL and so continue to exist after CASCADA returns.
Steps to Reproduce:
1) Start the Spanish version of FMSLogo
2) MUESTRA CASCADA 5 [# * ?] 1
3) EDTODO
What Happens:
The editor opens with
haz "cascade.final [?1]
haz "cascade.templates [[# * ?]]
Expected Result:
The editor opens with an empty workspace
I have commited [r4680] to fix this. The fix will be available in FMSLogo 7.4.0.
Related
Commit: [r4680]