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

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

From:
audreyt
Date:
June 28, 2006 18:38
Subject:
[svn:perl6-synopsis] r9719 - doc/trunk/design/syn
Message ID:
20060629013742.B2353D0257@x12.develooper.com
Author: audreyt
Date: Wed Jun 28 18:37:41 2006
New Revision: 9719

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

Log:
* S06: anonymous methods is part of Perl 6, so we use that
  instead of the Perl5esque "sub" for FETCH and STORE.

Modified: doc/trunk/design/syn/S06.pod
==============================================================================
--- doc/trunk/design/syn/S06.pod	(original)
+++ doc/trunk/design/syn/S06.pod	Wed Jun 28 18:37:41 2006
@@ -226,10 +226,10 @@
 
     sub checklastval ($passwd) is rw {
         return new Proxy:
-                FETCH => sub ($self) {
+                FETCH => method {
                             return lastval();
                          },
-                STORE => sub ($self, $val) {
+                STORE => method ($val) {
                             die unless check($passwd);
                             lastval() = $val;
                          };



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