Re: Variadic Multi-Dispatch (or, M-D on certain invocants only)

2006-05-14 Thread chromatic
On Sunday 14 May 2006 01:33, Leopold Toetsch wrote: > .sub some_function :multi( Array ) > .param pmc args > print "array\n" > .end > > .sub some_function :multi( string ) > .param string first_arg > .param pmc args :slurpy > print "string\n" > .end > .sub main :main >

Re: Variadic Multi-Dispatch (or, M-D on certain invocants only)

2006-05-14 Thread Leopold Toetsch
On May 14, 2006, at 9:22, chromatic wrote: I have a spot in Pheme where I'd like to use multi-dispatch on only the first argument to a function. The function itself is slurpy. That is: Completing your example: .sub some_function :multi( Array ) .param pmc args print "array\n" .end

Variadic Multi-Dispatch (or, M-D on certain invocants only)

2006-05-14 Thread chromatic
Hi there, I have a spot in Pheme where I'd like to use multi-dispatch on only the first argument to a function. The function itself is slurpy. That is: .sub some_function :multi( Array ) .param pmc args # ... .end .sub some_function :mul