• 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: Procedure parameters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Procedure parameters?
  • Next by Date: Re: real comparison problems [Re: ASTest redux]
  • Previous by thread: Re: Procedure parameters?
  • Next by thread: ANNOUNCE: XML Tools 2.5
  • Index(es):
    • Date
    • Thread