From: Dave Rolsky Date: Mon, 26 Jul 2010 15:30:39 +0000 (-0500) Subject: Move fixes in this branch to NEXT X-Git-Tag: 1.11~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc4299abc8d9974b46f3f41310594fc783c77995;p=gitmo%2FMoose.git Move fixes in this branch to NEXT --- diff --git a/Changes b/Changes index b91f9b0..0c6ba3e 100644 --- a/Changes +++ b/Changes @@ -1,10 +1,22 @@ Also see Moose::Manual::Delta for more details of, and workarounds for, noteworthy changes. - [BUG FIXES] +NEXT + [BUG FIXES] * mro::get_linear_isa is called as a function rather than a method + * Union types always created a type constraint, even if their constituent + constraints did not have any coercions. This bogus coercion always + returned undef, which meant that a union which included Undef as a member + always coerced bad values to undef. Reported by Eric Brine. RT + #58411. (Dave Rolsky) + + * Union types with coercions would always fall back to coercing the value to + undef (unintentionally). Now if all the coercions for a union type fail, + the value returned by the coercion is the original value that we attempted + to coerce. (Dave Rolsky). + 1.10 Sun, Aug 22, 2010 [API CHANGES] @@ -65,17 +77,6 @@ for, noteworthy changes. * Accessors will no longer be inlined if the instance metaclass isn't inlinable. (doy) - * Union types always created a type constraint, even if their constituent - constraints did not have any coercions. This bogus coercion always - returned undef, which meant that a union which included Undef as a member - always coerced bad values to undef. Reported by Eric Brine. RT - #58411. (Dave Rolsky) - - * Union types with coercions would always fall back to coercing the value to - undef (unintentionally). Now if all the coercions for a union type fail, - the value returned by the coercion is the original value that we attempted - to coerce. (Dave Rolsky). - * Use Perl 5.10's new recursive regex features, if possible, for the type constraint parser. (doy, nothingmuch)