Show Globals

Jim Ault JimAultWins at yahoo.com
Wed Dec 10 13:33:27 EST 2008


On 12/10/08 8:24 AM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:

> Francis Nugent Dixon wrote:
>> However, I don't know how to show globals assigned
>> ONLY to the current stack. Does anybody know ?
> 
> I'm not sure what you mean.  Globals are global in scope, available to
> any script with a matching global declaration.
> 
> --
>   Richard Gaskin

Richard is pointing out that globals are, well, global to the Rev
environment.  In fact, they are variables that are the property of the Rev
app, not any one stack or stack file.  This means that if you declare a
global, fill it with "a pony", the pony won't die until you quit Rev or
delete the global by using...

delete global gANiceWarmStable

It feels better to fill globals with things like "the unexpectedly-high
heating bill", then quit Rev.

The default is that globals live in memory as long as Rev is running.

Jim Ault
Las Vegas





More information about the use-livecode mailing list