X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse.pm;h=8bdced4c9ec6edf975a5d5bde887b94b57ac78e2;hp=a170114960b4b8e2d0bbbc6ff5aae5a73eb49f78;hb=f3e1112299b631f1ab6150159eaa414dca37a42c;hpb=b0b9f25a58185affc1f7a005929bf6b3f8770160 diff --git a/lib/Mouse.pm b/lib/Mouse.pm index a170114..8bdced4 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -3,12 +3,12 @@ use 5.006_002; use Mouse::Exporter; # enables strict and warnings -our $VERSION = '0.50'; +our $VERSION = '0.50_03'; use Carp qw(confess); use Scalar::Util qw(blessed); -use Mouse::Util qw(load_class is_class_loaded get_code_package not_supported); +use Mouse::Util (); use Mouse::Meta::Module; use Mouse::Meta::Class; @@ -160,7 +160,7 @@ Mouse - Moose minus the antlers =head1 VERSION -This document describes Mouse version 0.50 +This document describes Mouse version 0.50_03 =head1 SYNOPSIS @@ -176,6 +176,9 @@ This document describes Mouse version 0.50 $self->y(0); } + + __PACKAGE__->meta->make_immutable(); + package Point3D; use Mouse; @@ -188,6 +191,8 @@ This document describes Mouse version 0.50 $self->z(0); }; + __PACKAGE__->meta->make_immutable(); + =head1 DESCRIPTION L is wonderful. B @@ -207,10 +212,9 @@ B except for testing modules. =head2 MOOSE COMPATIBILITY -Compatibility with Moose has been the utmost concern. Fewer than 1% of the -tests fail when run against Moose instead of Mouse. Mouse code coverage is also -over 96%. Even the error messages are taken from Moose. The Mouse code just -runs the test suite 4x faster. +Compatibility with Moose has been the utmost concern. The sugary interface is +highly compatible with Moose. Even the error messages are taken from Moose. +The Mouse code just 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, @@ -221,7 +225,7 @@ Moose, if you run into weird errors, it would be worth running: ANY_MOOSE=Moose perl your-script.pl to see if the bug is caused by Mouse. Moose's diagnostics and validation are -also much better. +also better. See also L for compatibility and incompatibility with Moose.