Author: lwall
Date: 2010-04-05 20:30:30 +0200 (Mon, 05 Apr 2010)
New Revision: 30319

Modified:
   docs/Perl6/Spec/S05-regex.pod
Log:
[S05] rewrite misleading description of "thunk"


Modified: docs/Perl6/Spec/S05-regex.pod
===================================================================
--- docs/Perl6/Spec/S05-regex.pod       2010-04-05 17:17:54 UTC (rev 30318)
+++ docs/Perl6/Spec/S05-regex.pod       2010-04-05 18:30:30 UTC (rev 30319)
@@ -16,8 +16,8 @@
 
     Created: 24 Jun 2002
 
-    Last Modified: 30 Mar 2010
-    Version: 117
+    Last Modified: 5 apr 2010
+    Version: 118
 
 This document summarizes Apocalypse 5, which is about the new regex
 syntax.  We now try to call them I<regex> rather than "regular
@@ -4032,8 +4032,9 @@
 This is not a normal assigment, since the right side is evaluated each
 time the substitution matches (much like the pseudo-assignment to declarators
 can happen at strange times).  It is therefore treated as a "thunk", that is,
-as if it has implicit curlies around it.  In fact, it makes no sense at
-all to say
+it will be called as a chunk of code that creates a dynamic scope but not a
+lexical scope.  (You can also think of a thunk as a closure that uses the
+current lexical scope parasitically.)  In fact, it makes no sense at all to say
 
     s[pattern] = { doit }
 

Reply via email to