Leopold Toetsch <[EMAIL PROTECTED]> wrote:Leopold Toetsch <[EMAIL PROTECTED]> wrote:
Syntax proposal:
.sub foo @MULTI .invocant Integer a .invocant Float b .param pmc c ...
Alternate syntax:
.sub foo multi(Integer, Float) .param pmc a .param pmc b .param pmc c
And another one:
.multi sub foo .sub foo__Int_Num_Str Integer,Float:String .sub foo__Num_Int_Any Float,Integer,pmc .endmulti
Since the sub PMC's going to have to be installed in the MMD tables at load time with some amount of force (since there's going to have to be type lookups, amongst other things, that need to be done) I think we might as well go for something easy to parse. If I had my choice, I think I'd go with:
.sub foo @MULTI(Integer, -, Float)
where the @MULTI() carries the signature, with a dash denoting positions whose types are ignored for purposes of MMD lookup.
--
Dan
--------------------------------------it's like this------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk