[Catalyst-commits] r9736 - Catalyst-Runtime/5.80/trunk/lib/Catalyst
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sat Apr 18 17:43:43 GMT 2009
Author: t0m
Date: 2009-04-18 18:43:43 +0100 (Sat, 18 Apr 2009)
New Revision: 9736
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod
Log:
Clarify the component back compat section, and add info about 5.71001
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod 2009-04-18 17:34:03 UTC (rev 9735)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod 2009-04-18 17:43:43 UTC (rev 9736)
@@ -82,11 +82,19 @@
BEGIN { extends 'Catalyst::Component' }; # Or ::Controller, or whatever
Note that the C< extends > declaration needs to occur in a begin block for
-L<attributes> to operate correctly. You also don't get the L<Moose::Object>
-constructor, and therefore attribute initialization will not work as normally
-expected. If you want to use Moose attributes, then they need to be made lazy
-to correctly initialize.
+L<attributes> to operate correctly.
+You also don't get the L<Moose::Object> constructor, and therefore attribute
+initialization will not work as normally expected. If you want to use Moose
+attributes, then they need to be made lazy to correctly initialize.
+
+Note that this only applies if your component needs to maintain component
+backwards compatibility for Catalyst versions before 5.71001 - in 5.71001
+attributes work as expected, and the BUILD method is called normally
+(although BUILDARGS is not).
+
+If you depend on Catalyst 5.8, then B<all> Moose features work as expected.
+
=head3 use Moose in MyApp
Similar to the above, this will also fail:
More information about the Catalyst-commits
mailing list