Weirdness with global variable declaration
Richard Gaskin
ambassador at fourthworld.com
Mon Jan 19 13:14:18 EST 2004
Dar Scott wrote:
>
> On Monday, January 19, 2004, at 12:54 AM, Doug Lerner wrote:
>
>>>> If those commands are *outside* of a handler, exactly when do they
>>>> actually
>>>> get executed?
>>>
>>> Those are called commands, but I think of them as declarations, that
>>> is, information to the compiler.
>>>
>>
>> When do they get executed though?
>>
>> What if there are two different value assignments in two different
>> scripts?
>
> They don't get executed as I view them. They just tell the compiler
> how to handle them when they come up. They apply from that point
> onward.
>
> global a -- all mention of "a" after here means global
>
> on yyy
> put 42 into a -- put 42 into global a
> end yyy
Does that work for globals? I'd thought only locals were documented as
having this option.
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list