Weirdness with global variable declaration
Dave Cragg
dcragg at lacscentre.co.uk
Mon Jan 19 18:40:53 EST 2004
At 10:38 pm +0100 19/1/04, Robert Brenstein wrote:
>>On Monday, January 19, 2004, at 11:14 AM, Richard Gaskin wrote:
>>
>>>Does that work for globals? I'd thought only locals were documented as
>>>having this option.
>>
>>From the TD:
>>You can place the global command either in a handler, or in a
>>script but outside any handler in the script:
>>
>>I also ran a test. (You had me worried for a bit.)
>>
>>Dar Scott
>>
>
>I haven't tested this with the newest engine but earlier it was like
>Richard mentioned: globals had to be declared within a handler.
>There was some technical reason for that if I recall.
How far back are you going? Since engine version 2.2 at least (and
I'm pretty sure since pre 2.0), it has been possible to declare
globals outside of handlers. Either that, or my stacks are working by
magic.
Cheers
Dave
More information about the use-livecode
mailing list