From: Dave Rolsky Date: Mon, 27 Sep 2010 22:05:41 +0000 (-0500) Subject: Add default is & default deprecation to Changes and Delta X-Git-Tag: 1.15~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c787d26ee8153899678c532bf5da76650a71028a;p=gitmo%2FMoose.git Add default is & default deprecation to Changes and Delta --- diff --git a/Changes b/Changes index 3c821fb..f7861ee 100644 --- a/Changes +++ b/Changes @@ -9,6 +9,11 @@ NEXT "normal" attributes. This should be mostly compatible with existing code, but see Moose::Manual::Delta for details. + * A few native traits (String, Counter, Bool) provide default values or "is" + and "default" when you created an attribute. Allowing them to provide + these values is now deprecated. Supply the value yourself when creating + the attribute. + * New option 'trait_aliases' for Moose::Exporter, which will allow you to generate non-global aliases for your traits (and allow your users to rename the aliases, etc). (doy) diff --git a/lib/Moose/Manual/Delta.pod b/lib/Moose/Manual/Delta.pod index 6369de9..54e1996 100644 --- a/lib/Moose/Manual/Delta.pod +++ b/lib/Moose/Manual/Delta.pod @@ -74,6 +74,12 @@ that may cause problems. As always, you are encouraged to test before deploying the latest version of Moose to production. +=item Defaults is and default for String, Counter, and Bool + +A few native traits (String, Counter, Bool) provide default values or "is" and +"default" when you created an attribute. Allowing them to provide these values +is now deprecated. Supply the value yourself when creating the attribute. + =item The C method Moose and Class::MOP have been cleaned up internally enough to make the