Weirdness with global variable declaration

Robert Brenstein rjb at rz.uni-potsdam.de
Mon Jan 19 16:38:43 EST 2004


>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.

Robert Brenstein


More information about the use-livecode mailing list