defining and using globals in an application

Mark Stuart mfstuart at cox.net
Wed Jul 6 23:29:44 EDT 2011


Hi Slava,

My point exactly.
You have to define it again in every stack, or substack you want to use the
value thereof.
I define my globals at the top of each stack, outside any script. But only
those globals I need in that stack.

I think it is unnatural to call it a "global" and the value of that global
not be available anywhere else (in other stacks), unless you define that
global again.

This sets up the scenario of typing the global names incorrectly, or missing
to define it where needed.

Regards,
Mark Stuart





More information about the use-livecode mailing list