Re: Calling handlers by reference
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