Author: jnthn
Date: 2009-05-01 00:49:36 +0200 (Fri, 01 May 2009)
New Revision: 26592
Modified:
docs/Perl6/Spec/S14-roles-and-parametric-types.pod
Log:
[spec] .WHAT stringified gives back TypeName() so use .WHAT.perl to get just
TypeName (pmichaud++, TimToady++).
Modified: docs/Perl6/Spec/S14-roles-and-parametric-types.pod
===================================================================
--- docs/Perl6/Spec/S14-roles-and-parametric-types.pod 2009-04-30 22:37:09 UTC
(rev 26591)
+++ docs/Perl6/Spec/S14-roles-and-parametric-types.pod 2009-04-30 22:49:36 UTC
(rev 26592)
@@ -12,7 +12,7 @@
Jonathan Worthington <[email protected]>
Date: 24 Feb 2009, extracted from S12-objects.pod
Last Modified: 30 Apr 2009
- Version: 3
+ Version: 4
=head1 Overview
@@ -293,7 +293,7 @@
If you put something that is not a role on the right hand side of the
C<does> or C<but> operators then an anonymous role will be auto-generated
containing a single method that returns that value. The name of the method
-is determined by stringifying .WHAT on the value supplied on the RHS. The
+is determined by doing .WHAT.perl on the value supplied on the RHS. The
generated role is then mixed in to the object. For example:
$x does 42