• 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: Atomic scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Atomic scripts


  • Subject: Re: Atomic scripts
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 7 Aug 2002 10:35:44 -0700

On Wednesday, August 7, 2002, at 08:17 AM, Paul Skinner wrote:

On Wednesday, August 7, 2002, at 03:31 AM, Brennan wrote:

Paul Skinner <email@hidden> wrote

property parent : me

The effect of 'me' as parent is to short-circuit (literally) the
automatic redirection of handlers, that are not defined in the script,
up the hierarchy of context.

Hmm. In the case of calling a handler that is not in the script, why would this not lead to infinite recursion?

Because the AppleScript team codes well?

Nice of you to say so, Paul, but it's not relevant to this. It was actually a design decision to explicitly detect circular references and deal with them. Most languages don't bother, because the checks take a noticeable amount of time and memory, and the standpoint that if someone asks you to do an infinite amount of work with finite resources they deserve what they get is not an entirely unreasonable one. :)


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

  • Follow-Ups:
    • Re: Atomic scripts
      • From: email@hidden (Michael Sullivan)
References: 
 >Re: Atomic scripts (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: script to rename files (2)
  • Next by Date: Re: script to rename files (2)
  • Previous by thread: Re: Atomic scripts
  • Next by thread: Re: Atomic scripts
  • Index(es):
    • Date
    • Thread