Re: Passing *possible* variables to a handler
Re: Passing *possible* variables to a handler
- Subject: Re: Passing *possible* variables to a handler
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 18 Jul 2002 14:02:48 -0700
On 7/18/02 12:16 PM, "Arthur J. Knapp" <email@hidden> wrote:
>
> I guess you could hide sub-handlers within a main handler by wrapping them
>
> in a script object, but I'm not sure what practical advantages this'd have
>
> (anyone think of any?).
>
>
First of all, there is the Serge effect, where a script object might be
>
needed by a handler for only the life of the handler for speeding up access
>
to list items. Rather than referencing the object directly, one can use
>
"Nigel" access, giving the script object methods that provide faster access:
>
>
on TheHandler( theList )
>
>
script o
>
property p : theList
>
>
on GetAt(x)
>
return my p's item x
>
end
>
>
end
>
>
tell o
>
GetAt(4) --> faster access to item 4
>
Arthur,
Are you saying that this "Nigel" method provides even faster access than the
straight "Serge" method? by much? Or is it just an alternate way to get this
same fast access?
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.