Time to nail down some method syntax for IMCC. So, what I'd like (and this is open to discussion) is:

Calling a method:

object.variable(pararms)

object."literal name"(params)

that is, if the method is referenced with a string register or .local you use the first form and just name the register or local. On the other hand, making a method call with an actual literal string you put the method in quotes.

Method declarations:

   .pcc_sub foo prototyped, method
      .param pmc foo
      .param pmc bar

.end

That is, you add a method on the end of the sub declaration line. If you do so, the local self refers to the object pmc register. (I am OK with unconditionally doing this, in which case we should define some other guaranteed aliases)
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to