On Mar 11, 2011, at 2:52 PM,
http://mjdominus.myopenid.com/ via RT wrote:
Show quoted text> Queue: Moose
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=66554 >
>
> On Fri Mar 11 14:46:20 2011, HDP wrote:
>> No, it shouldn't; the documentation lists things that are allowed to
> be
>> overridden using "has '+attr'", and 'is' isn't one of them. It should
>> probably die instead.
>
> That would also be acceptable, and I see that it is documented as such
> in the Moose manual. But yesterday doy said:
>
>
> Mar 10 15:03:05 <doy> so your case should work
> Mar 10 15:04:43 <doy> if i remember correctly, the intention of the
> current logic is "you're allowed to override anything, as long as you
> don't change the name of a method that was already generated in a
> superclass"
>
>
> It would also make sense to me to allow overriding a rw attribute to ro,
> but not the other way around.
>
I think the reason 'is' is not override-able probably has something to do with the fact it is really not a true attribute of the attribute meta-object, and instead is expanded into reader/writer/accessor at attribute meta-object construction time.
Perhaps a better solution would be for you to either provide an 'accessor' in the +attr or a 'writer' with a different name.
I tend to agree with Dieter as well, it should die.
- Stevan