Re: Variable parameter synonym functions

2014-10-23 Thread Ken Ray
How about: on a send ("aardvark" && (word 2 to -1 of the params)) to me end a on aardvark put the params end aardvark — on mouseUp a "one","two","three" end mouseUp —> aardvark "one","two","three" ?? Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http:

Re: Variable parameter synonym functions

2014-10-23 Thread Mike Kerner
Yes, I understand how to do it, I'm just wondering if there's a more elegant way. On Thu, Oct 23, 2014 at 8:29 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Mikey, > > Here's a way: > > on mouseUp > put fun1("a","b") > end mouseUp > > function fun1 > repeat with x

Re: Variable parameter synonym functions

2014-10-23 Thread Mark Schonewille
Hi Mikey, Here's a way: on mouseUp put fun1("a","b") end mouseUp function fun1 repeat with x = 1 to the paramcount put param(x) & comma after myList end repeat put "fun2(" & char 1 to -2 of myList & ")" into myFun return value(myFun) end fun1 function fun2

Variable parameter synonym functions

2014-10-23 Thread Mikey
Has anybody come up with an easy way to write functions or handlers that are synonyms for other functions/handlers where both take a variable number of parameters? If I want to have a handler "a" and synonym "aardvark", I would normally write on a name aardvark name end a on aardvark name