X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FSpec.pm;h=75de0f60292a1042fbfc27932d15f1da516b1360;hp=c8098005923d0d8ca4b5fbea562f180cc221f42c;hb=4fbbc6564dcc9332bb0c8dc073e66fb4d82fdf9d;hpb=065f79e7cd03765f26c6ea276aaf9b3c5897886a diff --git a/lib/Mouse/Spec.pm b/lib/Mouse/Spec.pm index c809800..75de0f6 100644 --- a/lib/Mouse/Spec.pm +++ b/lib/Mouse/Spec.pm @@ -2,10 +2,10 @@ package Mouse::Spec; use strict; use warnings; -our $VERSION = '0.40_02'; +our $VERSION = '0.50_02'; our $MouseVersion = $VERSION; -our $MooseVersion = '0.90'; +our $MooseVersion = '0.93'; sub MouseVersion{ $MouseVersion } sub MooseVersion{ $MooseVersion } @@ -19,7 +19,7 @@ Mouse::Spec - To what extent Mouse is compatible with Moose =head1 VERSION -This document describes Mouse version 0.40_02 +This document describes Mouse version 0.50_02 =head1 SYNOPSIS @@ -30,16 +30,21 @@ This document describes Mouse version 0.40_02 =head1 DESCRIPTION -(TODO) +Mouse is a subset of Moose. This document describes to what extend Mouse is +compatible with Moose. =head2 Compatibility with Moose +The sugary API is highly compatible with Moose. + =head2 Incompatibility with Moose =head3 Meta object protocols -Any MOP has no attributes, so -C<< $metaclass->meta->make_immutable() >> does not yet work as you expect. +Any MOP in Mouse has no attributes by default. + +For this reason, C<< $metaclass->meta->make_immutable() >> does not yet work as you expect. +B. =head3 Mouse::Meta::Instance @@ -49,10 +54,18 @@ Meta instance mechanism is not implemented. Role exclusion, C, is not implemented. -=head3 -traits and -metaclass in Mouse::Exporter +=head3 -metaclass in Mouse::Exporter + +C<< use Mouse -metaclass => ... >> are not implemented. +Use C<< use Mouse -traits => ... >> instead. + +=head3 Mouse::Meta::Attribute::Native + +Native traits are not supported directly, but C is +available on CPAN. Once you have installed it, you can use it as the same way +in Moose. That is, native traits are automatically loaded by Mouse. -C<< use Mouse -traits => ... >> and C<< use Mouse -metaclass => ... >> are not -yet implemented. +See L for details. =head2 Notes about Moose::Cookbook @@ -66,7 +79,7 @@ L - The (always classic) B example =item * -L - A simple B example +L - A simple B example =item * @@ -78,31 +91,31 @@ L - Subtypes, and modeling a simple B =item * -L - More subtypes, coercion in a B class +L - More subtypes, coercion in a B class =item * -L - The augment/inner example +L - The augment/inner example =item * -L - Making Moose fast with immutable +L - Making Moose fast with immutable =item * -L - Builder methods and lazy_build +L - Builder methods and lazy_build =item * -L - Operator overloading, subtypes, and coercion +L - Operator overloading, subtypes, and coercion =item * -L - Using BUILDARGS and BUILD to hook into object construction +L - Using BUILDARGS and BUILD to hook into object construction =item * -L - The Moose::Role example +L - The Moose::Role example =item * @@ -110,19 +123,19 @@ L - Advanced Role Composition - method exclusio =item * -L - Applying a role to an object instance +L - Applying a role to an object instance =item * -L - A meta-attribute, attributes with labels +L - A meta-attribute, attributes with labels =item * -L - Labels implemented via attribute traits +L - Labels implemented via attribute traits =item * -L - Providing an alternate base object class +L - Providing an alternate base object class =back