Permalink
Browse files

Update pir book to new getprop syntax.

  • Loading branch information...
1 parent 075a574 commit 10ae7c67677bb74435fefc39c6e44115081e115b @bacek bacek committed Mar 5, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 docs/book/draft/ch10_opcode_reference.pod
  2. +2 −2 docs/book/pir/ch04_variables.pod
@@ -1088,11 +1088,11 @@ I<Arguments: SR>
X<getprop opcode (PASM)>
- getprop R<DEST>, R<NAME>, R<PMC>
+ getprop R<DEST>, R<PMC>, R<NAME>
Return the value of a named property on a PMC.
-I<Arguments: P, S, P>
+I<Arguments: P, P, S>
See also: C<setprop> and C<prophash>.
@@ -1524,7 +1524,7 @@ retrieve the property value.
=begin PIR_FRAGMENT
- $P2 = getprop "name", $P0
+ $P2 = getprop $P0, "name"
=end PIR_FRAGMENT
@@ -1541,7 +1541,7 @@ value of the property "eric" on C<$P0> and stores it in C<$P2>.
$P1 = 1
setprop $P0, "eric", $P1 # set a property on $P0
- $P2 = getprop "eric", $P0 # retrieve a property from $P0
+ $P2 = getprop $P0, "eric" # retrieve a property from $P0
say $P2 # prints 1

0 comments on commit 10ae7c6

Please sign in to comment.