Deafult or optional arguments to handlers
Deafult or optional arguments to handlers
- Subject: Deafult or optional arguments to handlers
- From: email@hidden (Michael Sullivan)
- Date: Mon, 22 Apr 2002 14:50:09 -0400
- Organization: Society for the Incurably Pompous
In writing a bunch of mods, I'm realizing that I'd really like a way to
give clients the opportunity to call a function with optional
parameters. Is there any way to do this, other than making the
parameter a list or record and then looking through it?
I'd like to able to write a function that normally takes a single number
argument, but behaves differently if there are two arguments, etc.
Is having the client pass a list or record for the multiple parameter
option, the only way?
Overloading or default arguments would really be a nice feature, don't
you think?
Michael
--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
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.