default arguments/parameters
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.