global problems

Ken Ray kray at sonsothunder.com
Mon Aug 1 11:56:23 EDT 2005


On 8/1/05 2:28 AM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:

> Global variables are persistent in memory, even when they've been
> purged. Once you have declared a global variable, even if you have
> deleted the line of code that declared it, you're stuck with it.

Well, yes, but that's because you didn't explicitly delete it, which you can
do with:

  delete global <globalName>

There are only two times when globals are completely removed - when the
interpreter quits, or when you explicitly delete globals with the syntax
above. Simply removing the declarative line of code doesn't "tell" Rev to do
anything other than removing the ability to use that global in that specific
script.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com





More information about the use-livecode mailing list