Re: delayDialog
Re: delayDialog
- Subject: Re: delayDialog
- From: Mark Lively <email@hidden>
- Date: Fri, 20 Jan 2006 12:51:47 -0500
On 1/20/06, jj <email@hidden> wrote:
> > You can't call another handler as a parameter to a handler, but you
> > can call a handler from within a handler, of course.
>
> You can even pass handlers as objects:
>
> on bar()
> return "test"
> end bar
>
> on foo(x)
> x
> end foo
>
> set q to foo(bar)
>
> q() --> "test"
>
That inspired some playing around on my part and I saw that under
tiger at least you can pass extra parameters to functions (they appear
to be dropped on the floor) but it complains if you don't send enough.
It strikes me as more useful the other way.
-Mark
yeah I know. Just pass 1 parameter to every function which is a list
of values, (probably how its done under the hood)
_______________________________________________
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