The Interactive Geometry Software Cinderella
Forums-> Cinderella Support (E)-> Scope of variables
dirkd
|
Scope of variables
|
|
Sorry for all these posts, but I want to restrict each post to a single subject.
The rules for variable scopes in Cindyscript are not very clear to me. What happens if I assign different values to the same variable in different folders of the scripteditor? I expect an assignment to a in the folder \Draw overwrites an assignment made in \Initialization, but I'm not sure. Could somebody provide me with the precize rules?
Say I define a variable in \Move. Is its value accessible in other folders? What about two different scripts in the same folder using the same variables?
|
|
|
|