Fwd: More on Native Traits

2009-08-23 Thread Chris Prather
I missed the list and only hit Jesse the first time. *sigh* -- Forwarded message -- From: Chris Prather perig...@gmail.com Date: Sun, Aug 23, 2009 at 3:06 PM Subject: Re: More on Native Traits To: Jesse Luehrs d...@tozt.net On Fri, Aug 21, 2009 at 7:22 PM, Jesse

MooseX::Types, parameterization, coercion

2009-08-23 Thread Hans Dieter Pearcey
Background: http://rt.cpan.org/Public/Bug/Display.html?id=48849 This fails: coerce ArrayRef[MyObject], from ArrayRef[HashRef], via { [ map { MyObject-new($_) } @$_ ] }; # later has objects = (isa = ArrayRef[MyObject], coerce = 1); It succeeds with a subtype of