• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handler query - exchanging values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Handler query - exchanging values
      • From: Simon Topliss <email@hidden>
References: 
 >Re: Handler query - exchanging values (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Handler query - exchanging values
  • Next by Date: Re: Handler query - exchanging values
  • Previous by thread: Re: Handler query - exchanging values
  • Next by thread: Re: Handler query - exchanging values
  • Index(es):
    • Date
    • Thread