Re: Handlers in list
Re: Handlers in list
- Subject: Re: Handlers in list
- From: Christopher Nebel <email@hidden>
- Date: Tue, 24 Apr 2001 15:40:04 -0700
On Monday, April 23, 2001, at 08:23 PM, email@hidden wrote:
It really seems like something that is just a fluke of the
implementation, and
may go away the way "item 0 of someList" did something weird and then
went away.
It won't go away if I can help it. I'll admit it's not documented, but
it's hardly in the same class as "item 0". That one was accessing
invalid memory -- it would actually crash on Mac OS X -- whereas
references to handlers is a designed-in feature. (At least I think it
was. The motives of the original implementors are not always clear from
the code.) Functions as objects is the first step in functional
programming, and lets you do some very nifty things.
--Chris Nebel
AppleScript Engineering