From: Jesse Luehrs Date: Fri, 6 May 2011 21:19:06 +0000 (-0500) Subject: fix documentation for attribute overriding X-Git-Tag: 2.0003~50 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bfd498a5e1a8048dde83fbfcc5819db6726e2fb0;p=gitmo%2FMoose.git fix documentation for attribute overriding --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 5bb924c..1c18290 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -734,54 +734,21 @@ another role. Aside from where the attributes come from (one from superclass, the other from a role), this feature works exactly the same. This feature is restricted -somewhat, so as to try and force at least I sanity into it. You are only -allowed to change the following attributes: +somewhat, so as to try and force at least I sanity into it. Most options work the same, but there are some exceptions: =over 4 -=item I +=item I -Change the default value of an attribute. +=item I -=item I +=item I -Change whether the attribute attempts to coerce a value passed to it. +=item I -=item I +=item I -Change if the attribute is required to have a value. - -=item I - -Change the documentation string associated with the attribute. - -=item I - -Change if the attribute lazily initializes the slot. - -=item I - -You I allowed to change the type without restriction. - -It is recommended that you use this freedom with caution. We used to -only allow for extension only if the type was a subtype of the parent's -type, but we felt that was too restrictive and is better left as a -policy decision. - -=item I - -You are allowed to B a new C definition, but you are B -allowed to I one. - -=item I - -You are allowed to B a new C definition, but you are B -allowed to I one. - -=item I - -You are allowed to B a new C definition, but you are -B allowed to I one. +These options can be added, but cannot override a superclass definition. =item I