Dan Sugalski <[EMAIL PROTECTED]> wrote:

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

Done.

  .namespace [ "Foo" ]
  .sub _meth method
      print "in meth\n"
      isa $I0, self, "Foo"
      ...

*If* a sub is declared as C<method>, C<self> is a valid identifier
refering to C<P2>.

leo

Reply via email to