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
>
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
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