Sam Ruby <[EMAIL PROTECTED]> wrote:

> I'll go back and all the necessary interpinfo calls, but I feel
> compelled to ask: why isn't P2 passed?

P2 is a non-preserved register and as such rather improper to hold the
object throughout a whole method.

> ... It seems to me quite likely that
> most methods will want to know what object they are working on.

Yes. Just use "self" which does all the magic you need inside a ".sub"
that is labeled "method".

> .namespace ['c']
> .sub m method
>     $P4 = P2
>     getprop $P5, 'p', $P4
>     .return ($P5)
> .end

.sub m method
    getprop $P5, 'p', self
    .return ($P5)
.end

leo

Reply via email to