On Tue Jun 26 04:52:46 2018, TOBYINK wrote:
Show quoted text> Best solution might be just to document it. Something like:
>
> For efficiency, Moo will sometimes avoid copying a value before
> passing it to the isa check. This means the isa coderef can
> inadvertently modify the value that is used to construct the object.
> Do not rely on this behaviour as it is inconsistent and may change
> from version to version.
I think that seems reasonable. It will always be possible to modify the value being checked in some cases (references) so I don't think there is a strong case for changing the current behavior. If someone does come up with a more concrete problem with this, it can always be revisited.