On Friday 18 September 2009 00:42:04 Parrot wrote:

>- when describing sub PMC, it is described that
>
>  $P0 = "my_new_sub"
>  changes name of the sub
>
>  So, few lines below should be
>
>  $P1 = inspect $P0, "pos_required"

Assigning to a different register is likely clearer for the example (thanks, 
applied in r41332), but the inspect PPS opcode will not change the name of the 
sub.  The assignment op calls the set_string_native VTABLE of the PMC in $P0, 
while the inspect PPS op calls the inspect_str VTABLE on the PMC in $P0 and 
stores the result in the $P1 register.  It does not assign anything to the 
contents of the $P1 register.

-- c
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to