From: Leopold Toetsch <[EMAIL PROTECTED]>
   Date: Mon, 14 Mar 2005 14:02:30 +0100

   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

What if one wants the first and third arguments to be the invocants?
Then the first syntax gives

       .sub foo @MULTI
         .invocant Integer a
         .param pmc b
         .invocant String c
         ...

But it's not as obvious how to do that for the second one, unless you
use "pmc" as the explicit type name for "any":

       .sub foo multi(Integer, pmc, String)
         .param pmc a
         .param pmc b
         .param pmc c

In that case the first syntax strikes me as cleaner . . .

                                        -- Bob Rogers
                                           http://rgrjr.dyndns.org/

Reply via email to