• 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: POSIX and lists question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POSIX and lists question


  • Subject: Re: POSIX and lists question
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sat, 13 Aug 2005 23:13:22 +0100

has wrote on Thu, 11 Aug 2005 20:27:38 +0100:

>AppleScript handlers look up lexically bound properties in their _current_
>context, not the context in which they were originally declared.
>Compile-time optimisations reduce name bindings to by-index lookups of the
>script object's slots, which explains the bizarre return values above.

An obfuscator's paradise!  ;-)

  on fred()
    say "Hello. I'm fred!"
  end fred

  on bill(x)
    script o
      on foo()
        return x
      end foo
    end script
    return o
  end bill

  set {foo:fn} to bill(false)
  set fn2 to fn()
  fn2()

NG

 _______________________________________________
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

  • Prev by Date: Re: Vote!
  • Next by Date: Scripting FileMaker
  • Previous by thread: Re: POSIX and lists question
  • Next by thread: MS Entourage to Text file
  • Index(es):
    • Date
    • Thread