X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FSpec.pm;h=a82fd87ff861aea6ef9a74b6a79d83ae2531fecd;hb=cc1318893656996b0892fa5809c1f12d4b765a9f;hp=99dabca734952c83bda5859b48a50e850fd35729;hpb=4f74e488e9d376f9def450da059e9a45d2870049;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Spec.pm b/lib/Mouse/Spec.pm index 99dabca..a82fd87 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.37_06'; +our $VERSION = '0.50_03'; our $MouseVersion = $VERSION; -our $MooseVersion = '0.90'; +our $MooseVersion = '0.93'; sub MouseVersion{ $MouseVersion } sub MooseVersion{ $MooseVersion } @@ -19,22 +19,34 @@ Mouse::Spec - To what extent Mouse is compatible with Moose =head1 VERSION -This document describes Mouse version 0.37_06 +This document describes Mouse version 0.50_03 + +=head1 SYNOPSIS + + use Mouse::Spec; + + printf "Mouse/%s is compatible with Moose/%s\n", + Mouse::Spec->MouseVersion, Mouse::Spec->MooseVersion; =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() >> will 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 C +=head3 Mouse::Meta::Instance Meta instance mechanism is not implemented. @@ -42,10 +54,18 @@ Meta instance mechanism is not implemented. Role exclusion, C, is not implemented. -=head3 C<-traits> and C<-metaclass> in Mouse::Exporter +=head3 -metaclass in Mouse::Exporter + +C<< use Mouse -metaclass => ... >> are not implemented. +Use C<< use Mouse -traits => ... >> instead. -C<< use Mouse -traits => ... >> and C<< use Mouse -metaclass => ... >> are not -yet implemented. +=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. + +See L for details. =head2 Notes about Moose::Cookbook @@ -59,7 +79,7 @@ L - The (always classic) B example =item * -L - A simple B example +L - A simple B example =item * @@ -71,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 * @@ -103,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 @@ -123,5 +143,11 @@ L - Providing an alternate base object clas L +L + +L + +L + =cut