Ticket #1021 (closed patch: fixed)

Opened 5 years ago

Last modified 5 years ago

typo in inspect description

Reported by: vkon Owned by:
Priority: trivial Milestone:
Component: docs Version: 1.6.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

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"

Attachments

parrot-41282-typo.patch Download (427 bytes) - added by vkon 5 years ago.

Change History

Changed 5 years ago by vkon

Changed 5 years ago by chromatic

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

Changed 5 years ago by chromatic

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.