Page 1 of 1

Explicit variables... "syntax to which it applies"

Posted: Mon Jun 29, 2015 7:18 pm
by erikhans08
LiveCode Dictionary:
set the explicitVariables to true
Specifies that local variables must be explicitly declared with the local command
Note: ExplicitVariables only come into effect when script is compiled,
such as in do, value and setting the script. Its value should be preserved
outside of user handlers, only setting it around syntax to which it applies
.
===
What does the last sentence mean?
I do get "error" when a local variable is already a script variable.
And there are some error messages associated with globals.
I also have to enclose constants as well as literals in quotes, i.e. "true".
All of which actually make the script easier to follow.

Thanks, Erik Hansen