On Fri, Nov 06, 2009 at 12:55:01AM -0800, Ovid wrote:
> ----- Original Message ----
> 
> > From: Jesse Luehrs <d...@tozt.net>
> > > That's a runtime bug which probably shouldn't be there, but Moose doesn't 
> > really have a way of detecting that.  Being able to change your 'isa' is 
> > arguably worse than being able to add a trigger :)
> > 
> > What's the issue here? This dies for me, saying that '2' isn't a valid
> > Bool, which is what i'd expect it to do.
> 
> Yes, but changing the parent attribute of 'Int' to a 'Bool'? That doesn't 
> make sense, and thus, changing 'isa' is a bit dodgy.  That could have been a 
> composition-time error, but allowing the change to isa makes it a 
> runtime-error.
> 
>  
> (I'm not arguing for being more restrictive here, though. I suspect this 
> would break a ton of code :)

Yeah, this issue was considered, and decided against for just that
reason(: This is just one of those things that people expect to work,
even though it might cause confusing issues if you use it badly.

-doy

Reply via email to