On Thu, Mar 12, 2009 at 03:29:09PM -0300, Daniel Ruoso wrote:
: Em Qui, 2009-03-12 às 19:07 +0100, Jonathan Worthington escreveu:
: > IIRC, that's a special syntactic form that only counts when it is on the 
: > RHS of but or does. (And yes, in this case it fails if the role has more 
: > than one attr...) I think in all other cases, it's a coercion.
: hmm...
: for some reason I always thought you would do
:   my $x = $resultset but Role::Serializable::XML;
: in that kind of situation... it feels awkward to have the exact same
: syntax to mean two completely unralated things...

That's a mixin, not a coercion.  The resulting type is anonymous,
not Role::Serializable::XML.


Reply via email to