[svn:parrot] r43438 - trunk/docs/pmc
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Wed Jan 13 03:04:22 UTC 2010
Author: plobsing
Date: Wed Jan 13 03:04:06 2010
New Revision: 43438
URL: https://trac.parrot.org/parrot/changeset/43438
Log:
fix docs/pmc/subs.pod wrt t/examples/pod.t
Modified:
trunk/docs/pmc/subs.pod
Modified: trunk/docs/pmc/subs.pod
==============================================================================
--- trunk/docs/pmc/subs.pod Wed Jan 13 01:59:18 2010 (r43437)
+++ trunk/docs/pmc/subs.pod Wed Jan 13 03:04:06 2010 (r43438)
@@ -208,19 +208,13 @@
=end PIR_FRAGMENT
A sub can accept an arbitrary number of parameters by declaring a C<:slurpy>
-parameter:
+parameter. This creates a pmc containing an array of all parameters passed to
+the sub, these can be accessed like so:
=begin PIR_FRAGMENT
.param pmc all_params :slurpy
-=end PIR_FRAGMENT
-
-This creates a pmc containing an array of all parameters passed to the sub,
-these can be accessed like so:
-
-=begin PIR_FRAGMENT
-
$P0 = all_params[0]
$S0 = all_params[1]
@@ -295,7 +289,7 @@
=begin PIR_FRAGMENT
- $P5 = do_something($I6 :named("counter"), $S4 :named("name))
+ $P5 = do_something($I6 :named("counter"), $S4 :named("name"))
#or equivalently
$P5 = do_something("counter" => $I6, "name" => $S4)
More information about the parrot-commits
mailing list