cvsuser 04/01/13 02:30:27
Modified: docs/pmc subs.pod
Log:
update Sub docs
Revision Changes Path
1.10 +13 -7 parrot/docs/pmc/subs.pod
Index: subs.pod
===================================================================
RCS file: /cvs/public/parrot/docs/pmc/subs.pod,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -r1.9 -r1.10
--- subs.pod 1 Nov 2003 16:33:23 -0000 1.9
+++ subs.pod 13 Jan 2004 10:30:26 -0000 1.10
@@ -23,13 +23,13 @@
=head2 Items in the Subs Context
- Subtype Controlstack PadStack UserStack Warnings
- ------------------------------------------------------------
- Sub - - - C
- Closure - C - C
- Continuation C C C C
- Coroutine C C C C
- RetContinuation X X X X
+ Subtype Controlstack PadStack UserStack RegStacks Warnings
+ ------------------------------------------------------------------
+ Sub - - - - C
+ Closure - C - - C
+ Continuation C C C C C
+ Coroutine C C C C C
+ RetContinuation X X X X X
"C" ... COWed copy is in context
"X" ... is in context
@@ -51,6 +51,12 @@
Create a subroutine (in P0) and a return continuation (in P1):
newsub .Sub, .RetContinuation, _sub_label, ret_label
+
+Get a reference to a (possibly) external subroutine:
+
+ find_global P0, "_the_sub"
+ ...
+ .pcc_sub _the_sub:
=head2 Invocation i.e. calling the sub