Subject: | immutable subclass, mutable parent, silent failures |
Date: | Wed, 19 Aug 2009 12:05:32 -0700 |
To: | bugs-moose <bugs-moose [...] rt.cpan.org> |
From: | Hans Dieter Pearcey <hdp [...] pobox.com> |
It's confusing when someone does something like this:
package Base;
use Moose;
use Subclass;
has (...);
package Subclass;
use Moose;
extends 'Base';
__PACKAGE__->meta->make_immutable;
The subclass doesn't see any changes made to Base after 'use Subclass' (because
it's immutable). This is fine, but we should try to tell those people they're
doing it wrong.
hdp.