Author: lwall
Date: 2010-07-13 02:13:42 +0200 (Tue, 13 Jul 2010)
New Revision: 31654

Modified:
   docs/Perl6/Spec/S06-routines.pod
Log:
[S06] defined callsame/nextsame in terms of callwith/nextwith and callframe


Modified: docs/Perl6/Spec/S06-routines.pod
===================================================================
--- docs/Perl6/Spec/S06-routines.pod    2010-07-13 00:06:32 UTC (rev 31653)
+++ docs/Perl6/Spec/S06-routines.pod    2010-07-13 00:13:42 UTC (rev 31654)
@@ -16,8 +16,8 @@
 
     Created: 21 Mar 2003
 
-    Last Modified: 10 Jul 2010
-    Version: 140
+    Last Modified: 12 Jul 2010
+    Version: 141
 
 This document summarizes Apocalypse 6, which covers subroutines and the
 new type system.
@@ -2663,7 +2663,11 @@
 The C<callwith> function lets you pass your own arguments to the wrapped
 function.  The C<callsame> function takes no argument; it
 implicitly passes the original argument list through unchanged.
+The C<callsame> and C<nextsame> functions are really short for:
 
+    callwith( |callframe(Routine).args )
+    nextwith( |callframe(Routine).args )
+
 The call to C<.wrap> replaces the original C<Routine>'s C<do> property with 
the C<Callable>
 argument, and arranges that any call to C<callsame>, C<callwith>,
 C<nextsame> or C<nextwith> invokes the previous version of the

Reply via email to