• 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: minimum function? (Modified by Simon Forster)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: minimum function? (Modified by Simon Forster) (From: has <email@hidden>)

  • Prev by Date: Re: minimum function?
  • Next by Date: Re: minimum function?
  • Previous by thread: Re: minimum function? (Modified by Simon Forster)
  • Next by thread: Re: minimum function? (Modified by Simon Forster)
  • Index(es):
    • Date
    • Thread