From: Stevan Little Date: Sun, 24 Feb 2008 20:04:28 +0000 (+0000) Subject: has +name from role officially supported X-Git-Tag: 0_55~293 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4032c9bb480c5429dce583411a116cf1ae46d100;p=gitmo%2FMoose.git has +name from role officially supported --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 4e471dd..1fe7548 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -643,10 +643,12 @@ Here is another example, but within the context of a role: has '+message' => (default => 'Hello I am My::Foo'); In this case, we are basically taking the attribute which the role supplied -and altering it within the bounds of this feature. +and altering it within the bounds of this feature. -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: +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: =over 4