defining and using globals in an application

J. Landman Gay jacque at hyperactivesw.com
Thu Jul 7 12:04:13 EDT 2011


On 7/7/11 10:36 AM, Mark Stuart wrote:

> Jacqueline - are you saying that two different applications (as
> executables or as .rev/.livecode stacks) using the same global name can
> be referenced by one another, and share the same values? That's bizarre.

No, not at all. In your own standalone, globals and all other variables 
belong only to your scripts and it's safe. The conflict arises only if 
you are working with stacks in the IDE. Plugins are a good example, or 
any stacks you download from RevOnline. If one of those uses the same 
global name as a local variable in your own script, you'll get the other 
author's values instead of yours.

It could happen with your own stacks too if you're like many of us and 
tend to use the same names in different stacks for certain things.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list