----- 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 :) Cheers, Ovid -- Buy the book - http://www.oreilly..com/catalog/perlhks/ Tech blog - http://use.perl.org/~Ovid/journal/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6