develooper Front page | perl.perl6.language | Postings from August 2006

[svn:perl6-synopsis] r10944 - doc/trunk/design/syn

From:
larry
Date:
August 14, 2006 18:38
Subject:
[svn:perl6-synopsis] r10944 - doc/trunk/design/syn
Message ID:
20060815013845.72753CB9BB@x12.develooper.com
Author: larry
Date: Mon Aug 14 18:38:44 2006
New Revision: 10944

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

Log:
Constrained FIRST, NEXT, and LAST to work only at top level of loop block.


Modified: doc/trunk/design/syn/S04.pod
==============================================================================
--- doc/trunk/design/syn/S04.pod	(original)
+++ doc/trunk/design/syn/S04.pod	Mon Aug 14 18:38:44 2006
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <larry@wall.org>
   Date: 19 Aug 2004
-  Last Modified: 11 Aug 2006
+  Last Modified: 14 Aug 2006
   Number: 4
-  Version: 33
+  Version: 34
 
 This document summarizes Apocalypse 4, which covers the block and
 statement syntax of Perl.
@@ -699,6 +699,9 @@
 of C<LEAVE>, and for execution order are treated as part of the queue of
 C<LEAVE> blocks.
 
+C<FIRST>, C<NEXT>, and C<LAST> are meaningful only within the lexical scope
+of a loop, and may occur only at the top level of such a loop block.
+
 [Note: the name C<FIRST> used to be associated with C<state>
 declarations.  Now it is associated only with loops.  See the C<START>
 above for C<state> semantics.]



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About