• 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
default arguments/parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

default arguments/parameters


  • Subject: default arguments/parameters
  • From: "Rua Haszard Morris" <email@hidden>
  • Date: Thu, 9 Oct 2003 14:17:51 +1000

Hi,

Is there a way to define a handler to take default positional parameters?
e.g.
to displayplaindialog(optional texttoshow = "default text")
display dialog texttoshow
end

Is there a way to restrict the types of parameters to handlers? i.e. in the
above an error would occur if it was called with texttoshow other than text?

I get the feeling these things can be done but there is not standard
predefined way to do em, and there's no conventional way either (everyone
does it their own way).. any conventions out there?

Thanks again for any suggestions..
Rua.

Rua Haszard Morris
Software Engineer & Research Assistant
MARCS Auditory Laboratories
http://www.uws.edu.au/marcs
Ph +61 2 97726723 Fax +61 2 97726326
_______________________________________________
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.

  • Follow-Ups:
    • Re: default arguments/parameters
      • From: Paul Berkowitz <email@hidden>
    • Re: default arguments/parameters
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: case and function names conventions
  • Next by Date: Re: case and function names conventions
  • Previous by thread: Re: case and function names conventions
  • Next by thread: Re: default arguments/parameters
  • Index(es):
    • Date
    • Thread