• 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: Calling handlers by reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling handlers by reference


  • Subject: Re: Calling handlers by reference
  • From: bill fancher <email@hidden>
  • Date: Sun, 20 May 2001 01:13:01 -0700

On Saturday, May 19, 2001, at 02:33 PM, Michael Ellis wrote:

on HelloWorld()
log "Hello world!"
end HelloWorld

set helloWorldRef to a reference to HelloWorld
(helloWorldRef as handler)()

on hello(param)
log "Hello " & param
end hello
set hey to hello
hey("world")

on greet for param
log "Greetings, " & param
end greet
set hey to greet
hey for "world"

--
bill


  • Prev by Date: property persistence problems
  • Next by Date: Re: Setting the text in a note in Now Contact
  • Previous by thread: Calling handlers by reference
  • Next by thread: Re: Calling handlers by reference
  • Index(es):
    • Date
    • Thread