On Tue, Apr 14, 2009 at 2:41 PM, Stevan Little
<stevan.lit...@iinteractive.com> wrote:
>
> On Apr 14, 2009, at 2:29 PM, Hans Dieter Pearcey wrote:
>
>> On Tue, Apr 14, 2009 at 02:22:52PM -0400, Stevan Little wrote:
>>>
>>> So, while I am not willing to change this behavior, I am willing to add a
>>> warning so that it is not so "silent" anymore. So code like this will
>>> warn you that your overriding a class method.
>>
>> This is a reasonable compromise, and anyone wanting something stricter can
>> extend Moose::Meta::Role to get fatal behavior.

Is this possible / easy? This is what I'd originally suggested to Ovid
and I still think that it's the best generic solution.

>>> You will be able to silence this warning by explicitly excluding the
>>> method from the role, like so:
>>
>> around() (without calling the next method) would also work.
>
> That won't be detectable at composition time though.

Also it means action at a distance and will fail if/when you delete
the class's local method. I just recommended against this in another
thread because of those issues.

-Chris

Reply via email to