Excerpts from Karen Etheridge's message of Wed Jan 13 13:31:53 -0500 2010:
> One approach would be to subclass Moose::Meta::Attribute (or better,
> install a trait via a role - as described in
> Moose::Cookbook::Meta::Recipe1-5) which modified the behaviour of
> get_value() and set_value().

This won't work -- the generated accessors only call set_value with $_[1], not
with the rest of @_.

You could work around that by always setting with an arrayref instead of an
array, but then you have exactly reimplemented auto_deref.

hdp.

Reply via email to