Re: Procedure parameters?
Re: Procedure parameters?
- Subject: Re: Procedure parameters?
- From: Andy Wylie <email@hidden>
- Date: Mon, 30 Sep 2002 18:05:16 +1200
on Mon, 30 Sep 2002 10:18:25 +0500 Bruce M. Axtens wrote:
>
In some languages you can have function parameters which are the names of
>
other functions. I have a generic sort which I like to be able to pass to
>
the name of a routine that actually does the comparison. Is there a means of
>
doing this in AppleScript?
>
Assuming the sort and comparison are both handlers (routines) you just put
the sort call inside the comparison one... compare(sort(x))
_____________________________ Andy
_______________________________________________
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.