[Moose-commits] r7591 - Moose/trunk/lib/Moose/Cookbook
autarch at code2.0beta.co.uk
autarch at code2.0beta.co.uk
Mon Feb 9 22:18:13 GMT 2009
Author: autarch
Date: 2009-02-09 14:18:13 -0800 (Mon, 09 Feb 2009)
New Revision: 7591
Modified:
Moose/trunk/lib/Moose/Cookbook/WTF.pod
Log:
Clarify that this wtf is about subroutine attributes
Modified: Moose/trunk/lib/Moose/Cookbook/WTF.pod
===================================================================
--- Moose/trunk/lib/Moose/Cookbook/WTF.pod 2009-02-09 20:03:31 UTC (rev 7590)
+++ Moose/trunk/lib/Moose/Cookbook/WTF.pod 2009-02-09 22:18:13 UTC (rev 7591)
@@ -109,9 +109,9 @@
return reverse @rv;
};
-=head2 Moose and Attributes
+=head2 Moose and Subroutine Attributes
-=head3 Why don't attributes I inherited from a superclass work?
+=head3 Why don't subroutine attributes I inherited from a superclass work?
Currently when you subclass a module, this is done at runtime with
the C<extends> keyword but attributes are checked at compile time
@@ -119,8 +119,13 @@
C<BEGIN> block so that the attribute handlers will be available at
compile time like this:
- BEGIN { extends qw/Foo/ }
+ BEGIN { extends qw/Foo/ }
+Note that we're talking about Perl's subroutine attributes here, not
+Moose attributes:
+
+ sub foo : Bar(27) { ... }
+
=head2 Moose and Other Modules
=head3 Why can't I get Catalyst and Moose to work together?
More information about the Moose-commits
mailing list