Squashed commit of the following:
commit
0d0fc578def25e8c4d83a911fac0f285b9fe4687
Author: Jesse Luehrs <doy@tozt.net>
Date: Mon Jul 5 16:30:32 2010 -0500
changelog
commit
a1935c6559b2b82b1a54fc23230d5fb066774715
Author: Jesse Luehrs <doy@tozt.net>
Date: Mon Jul 5 19:29:48 2010 -0500
just use cmop's _generate_default_value
commit
33399a9225667fb68364acf6b9a1badb744c1435
Author: Jesse Luehrs <doy@tozt.net>
Date: Mon Jul 5 02:07:21 2010 -0500
avoid converting ints to strings when validating the Int tc
commit
6012070770f47ba52cf7177a69c4e0bf4a1320af
Author: Henry Van Styn <vanstyn@intellitree.com>
Date: Mon Jul 5 02:57:28 2010 -0400
don't stringify numeric defaults in the inlined codepath
added extra check in
Moose::Meta::Method::Constructor::_generate_default_value to return the
raw default value if it passes looks_like_number($attr->default). This
fixes the bug where non-lazy attributes with defaults set to numbers
would be returned as a string instead of a number (i.e. attribute with
default => 100 would be returned as "100" instead of 100)
commit
d1939fbdc40718a351c02435ca2766c058273c23
Author: Jesse Luehrs <doy@tozt.net>
Date: Mon Jul 5 00:22:19 2010 -0500
failing test for attributes with numeric defaults during immutability