[svn:parrot] r37610 - trunk/docs
coke at svn.parrot.org
coke at svn.parrot.org
Fri Mar 20 14:15:53 UTC 2009
Author: coke
Date: Fri Mar 20 14:15:52 2009
New Revision: 37610
URL: https://trac.parrot.org/parrot/changeset/37610
Log:
[t/docs] - t/examples/pod.t pointed out broken PIR
This syntax was removed some time ago. fix the code and the surrounding text.
Modified:
trunk/docs/intro.pod
Modified: trunk/docs/intro.pod
==============================================================================
--- trunk/docs/intro.pod Fri Mar 20 03:26:24 2009 (r37609)
+++ trunk/docs/intro.pod Fri Mar 20 14:15:52 2009 (r37610)
@@ -202,16 +202,14 @@
=begin PIR
.sub main
- set S0, "Hello world!\n"
- print S0
+ set $S0, "Hello world!\n"
+ print $S0
.end
=end PIR
-Here we have stated exactly which register to use. However, by
-replacing C<S0> with C<$S0> we can delegate the choice of which
-register to use to Parrot. It is also possible to use an C<=>
-notation instead of writing the C<set> instruction.
+This sample shows the explicit use of the C<set> opcode. PIR
+provides some syntactic relief here with the C<=> operator.
=begin PIR
More information about the parrot-commits
mailing list