Re: Handler query - exchanging values
Re: Handler query - exchanging values
- Subject: Re: Handler query - exchanging values
- From: Shane Stanley <email@hidden>
- Date: Fri, 30 Jun 2006 17:41:49 +1000
- Thread-topic: 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:
This email sent to email@hidden