Re: minimum function? (Modified by Simon Forster)
Re: minimum function? (Modified by Simon Forster)
- Subject: Re: minimum function? (Modified by Simon Forster)
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 06 Apr 2005 11:45:33 -0700
On 4/6/05 11:15 AM, "has" <email@hidden> wrote:
> By some unspecified mechanism, this additional checking mechanism is bypassed
> when using certain reference forms, giving you constant-time lookups again
> (plus crashes if you're not careful how you do it). There's an obscure mention
> of this trick in the ASLG, and Emmanuel Levy's [IIRC] script object kludge is
> the best - or rather, least nasty - way to do it.
Not Emmanuel, another Frenchman: Serge Belleudy-d'Espinose, discovered the
script object trick - which works (and is required) in handlers
(subroutines) only. At the top level of a script, 'my [list]' works
identically, as discovered by Nigel Garvey. ('my' of course will also work
in handlers if the list has been declared as a property or global, not
usually recommended.) Both script object and 'my' are actually quicker than
'a reference to' mentioned "obscurely" in the ASLG, as shown by Nigel.
--
Paul Berkowitz
_______________________________________________
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