Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handler query - exchanging values



On 30/6/06 5:26 PM, "Axel Luttgens" <email@hidden> wrote:

> But previously, one had terrible lexical scoping clashes that required
> to be extremely careful:
> 
>    -- OK up to 10.3.9
>    -- (fortunately) fails since 10.4.x
>    global apples
> 
>    boo()
>    hoo()
> 
>    on boo()
>       set apples to 1
>    end boo
> 
>    on hoo()
>       display dialog apples
>    end hoo

The only care required is to declare the variables as locals within the
handlers, surely.

-- 
Shane Stanley <email@hidden>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Handler query - exchanging values (From: Axel Luttgens <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.