Patrick R. Michaud <[EMAIL PROTECTED]> wrote:

> I'd appreciate any gentle nudges towards the appropriate documentation,
> source file, or answer.  Thanks!

I've now created a test for it in t/pmc/object-meths.t:

  .sub go method
      ...
      P2 = self
      tailcallmethod "go"
  .end

Works. But that's not really optimal. Should the invocant be implicitely
"self" and/or do we need a more general syntax:

  .pcc_begin
    .arg x
    ...
    .invocant o
    tailcallmethod "foo"
  .pcc_end

And maybe even

   foo(x, ...) @TAIL_CALL      # tail function call

   o.foo(x, ...) @TAIL_CALL    # tail method call

> Pm

leo

Reply via email to