On Thu, Jun 17, 2010 at 07:16:03AM -0700, Jonathan Swartz wrote:
> Is is kosher to change the inheritance of a Moose class dynamically, by 
> manipulating @ISA? What about in conjunction with make_immutable()?
>
> This is for Mason 2, in which each template will generate to a Moose  
> class. The inheritance of a template class can potentially change as  
> people create and remove autohandlers.
>
> Thanks
> Jon

It sounds like a pretty bad idea, but if you're going to do it, you
should use Class->meta->superclasses rather than manipulating @ISA
directly, and the class can't be immutable when you do that.

-doy

Reply via email to