X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse.pm;h=8e0566d7599c5e5f90d2b3a31ea8ce03831d2fd4;hb=e693975ff1701c9d268c7cbde0fec816ce71305c;hp=34be99305b3abdc0e714e2dad22fb2bec9945718;hpb=aec5563ba96db71bec4c301c811c4888d52258a6;p=gitmo%2FMouse.git diff --git a/lib/Mouse.pm b/lib/Mouse.pm index 34be993..8e0566d 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -4,7 +4,7 @@ use warnings; use 5.006; use base 'Exporter'; -our $VERSION = '0.20'; +our $VERSION = '0.21'; use Carp 'confess'; use Scalar::Util 'blessed'; @@ -115,6 +115,9 @@ sub import { $meta->superclasses('Mouse::Object') unless $meta->superclasses; + # make a subtype for each Mouse class + class_type($caller) unless find_type_constraint($caller); + no strict 'refs'; no warnings 'redefine'; *{$caller.'::meta'} = sub { $meta }; @@ -224,15 +227,14 @@ Mouse - Moose minus the antlers =head1 DESCRIPTION -L is wonderful. +L is wonderful. B -Unfortunately, it's a little slow. Though significant progress has been made -over the years, the compile time penalty is a non-starter for some +Unfortunately, Moose has a compile-time penalty. Though significant progress has +been made over the years, the compile time penalty is a non-starter for some applications. -Mouse aims to alleviate this by providing a subset of Moose's -functionality, faster. In particular, L is missing only a few -expert-level features. +Mouse aims to alleviate this by providing a subset of Moose's functionality, +faster. We're also going as light on dependencies as possible. L or L is required if you want support @@ -247,9 +249,8 @@ runs the test suite 4x faster. The idea is that, if you need the extra power, you should be able to run C on your codebase and have nothing break. To that end, -nothingmuch has written L (part of this distribution) which will act -as Mouse unless Moose is loaded, in which case it will act as Moose. -L is a more high-tech L. +we have written L which will act as Mouse unless Moose is loaded, +in which case it will act as Moose. =head2 MouseX @@ -417,6 +418,15 @@ Returns whether this class is actually loaded or not. It uses a heuristic which involves checking for the existence of C<$VERSION>, C<@ISA>, and any locally-defined method. +=head1 SOURCE CODE ACCESS + +We have a public git repo: + + git clone git://jules.scsys.co.uk/gitmo/Mouse.git + +If you would like commit access, send a note with your public SSH key to Yuval +Kogman, at the address below. + =head1 AUTHORS Shawn M Moore, C<< >> @@ -427,6 +437,8 @@ tokuhirom Yappo +wu-lee + with plenty of code borrowed from L and L =head1 BUGS