cvsuser 03/08/03 04:40:33
Modified: docs/pmc subs.pod
Log:
docu update
Revision Changes Path
1.4 +13 -6 parrot/docs/pmc/subs.pod
Index: subs.pod
===================================================================
RCS file: /cvs/public/parrot/docs/pmc/subs.pod,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- subs.pod 6 Jul 2003 15:22:38 -0000 1.3
+++ subs.pod 3 Aug 2003 11:40:33 -0000 1.4
@@ -21,10 +21,12 @@
Subtype Controlstack PadStack UserStack Warnings
------------------------------------------------------------
Sub - - - X
- Closure X X
+ Closure - X - X
Continuation X X X X
Coroutine X X X X
+"X" ... is in context, "-" ... isn't.
+
=head1 SYNOPSIS
=head2 Creation
@@ -85,9 +87,10 @@
# do_something
invoke P1
-If items in the interpreter context are changed between creation of the
-subroutine/return continuation and its invocation, the C<updatecc> opcode
-should be used:
+If items in the interpreter context are changed between creation of
+the subroutine/return continuation and its invocation, the C<updatecc>
+opcode should be used, so that the state of the return continuation
+matches that of the interpreter:
newsub .Sub, .Continuation, _sub_label, ret_label
...
@@ -100,8 +103,12 @@
=head1 FILES
F<classes/sub.pmc>, F<classes/closure.pmc>, F<classes/continuation.pmc>,
-F<classes/coroutine.pmc>,
-F<docs/pdds/pdd03_calling_conventions.pod>, F<t/pmc/sub.t>
+F<classes/coroutine.pmc>, F<sub.c>, F<t/pmc/sub.t>
+
+=head1 SEE ALSO
+
+F<docs/pdds/pdd03_calling_conventions.pod>
+F<languages/imcc/docs/calling_conventions.pod>
=head1 AUTHOR