On Wed, Sep 26, 2007 at 01:39:51PM -0500, Patrick R. Michaud wrote:
> This is primarily for Allison, but others can chip in....
>
> 1. In PIR, if I have an Object in a PMC register, how do I
> determine its corresponding Class object? Is the "standard"
> mechanism to use the C<inspect> opcode?
>
> $P1 = inspect $P0, 'class' # $P1 is class object of $P0
In src/ops/object.ops, we have:
=item B<class>(out PMC, invar PMC)
Get the class PMC for the object in $2 and put it in $1.
This is exactly what I'm looking for, but it's not currently documented
in pdd15. Can this be "made official" one way or the other -- i.e.,
"officially adopted" or "officially rejected"?
Also, I don't know that it matters, but some of the tests seem to
use 'class' as a local PMC symbol.
Pm