develooper Front page | perl.perl6.language | Postings from March 2009

r25966 - docs/Perl6/Spec

From:
pugs-commits
Date:
March 23, 2009 11:45
Subject:
r25966 - docs/Perl6/Spec
Message ID:
20090322205827.31359.qmail@feather.perl6.nl
Author: moritz
Date: 2009-03-22 21:58:27 +0100 (Sun, 22 Mar 2009)
New Revision: 25966

Modified:
   docs/Perl6/Spec/S14-roles-and-parametric-types.pod
Log:
[S14] use named arguments to .new() in an example

Modified: docs/Perl6/Spec/S14-roles-and-parametric-types.pod
===================================================================
--- docs/Perl6/Spec/S14-roles-and-parametric-types.pod	2009-03-22 20:03:56 UTC (rev 25965)
+++ docs/Perl6/Spec/S14-roles-and-parametric-types.pod	2009-03-22 20:58:27 UTC (rev 25966)
@@ -98,7 +98,7 @@
 Roles may have attributes:
 
     role Pet {
-        has $.collar = Collar.new(Tag.new);
+        has $.collar = Collar.new(tag => Tag.new);
         method id () { return $.collar.tag }
         method lose_collar () { undefine $.collar }
     }




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