Author: audreyt
Date: Sun Sep 24 06:12:58 2006
New Revision: 12348

Modified:
   doc/trunk/design/syn/S06.pod

Log:
* S06: Squash two remaining "*f" into "|(f)".

Modified: doc/trunk/design/syn/S06.pod
==============================================================================
--- doc/trunk/design/syn/S06.pod        (original)
+++ doc/trunk/design/syn/S06.pod        Sun Sep 24 06:12:58 2006
@@ -13,9 +13,9 @@
 
   Maintainer: Larry Wall <[EMAIL PROTECTED]>
   Date: 21 Mar 2003
-  Last Modified: 22 Sept 2006
+  Last Modified: 24 Sept 2006
   Number: 6
-  Version: 57
+  Version: 58
 
 
 This document summarizes Apocalypse 6, which covers subroutines and the
@@ -1891,11 +1891,11 @@
 responds to the left-hand C<Signature> in a binding.  This allows named return
 values if the caller expects one:
 
-    sub f { return :x<1> }
+    sub f () { return :x<1> }
     sub g ($x) { print $x }
 
-    my $x := *f();  # binds 1 to $x, via a named argument
-    g(*f());        # prints 1, via a named argument
+    my $x := |(f);  # binds 1 to $x, via a named argument
+    g(|(f));        # prints 1, via a named argument
 
 To return a literal C<Pair> object, always put it in an additional set of
 parentheses:

Reply via email to