Re: POSIX and lists question
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