1Mouse::Spec(3)        User Contributed Perl Documentation       Mouse::Spec(3)
2
3
4

NAME

6       Mouse::Spec - To what extent Mouse is compatible with Moose
7

VERSION

9       This document describes Mouse version 0.58
10

SYNOPSIS

12           use Mouse::Spec;
13
14           printf "Mouse/%s is compatible with Moose/%s\n",
15               Mouse::Spec->MouseVersion, Mouse::Spec->MooseVersion;
16

DESCRIPTION

18       Mouse is a subset of Moose. This document describes to what extend
19       Mouse is compatible with Moose.
20
21   Compatibility with Moose
22       The sugary API is highly compatible with Moose.
23
24   Incompatibility with Moose
25       Meta object protocols
26
27       Any MOP in Mouse has no attributes by default.
28
29       For this reason, "$metaclass->meta->make_immutable()" does not yet work
30       as you expect.  Don not make metaclasses immutable.
31
32       Mouse::Meta::Instance
33
34       Meta instance mechanism is not implemented.
35
36       Role exclusion
37
38       Role exclusion, "exclude()", is not implemented.
39
40       -metaclass in Mouse::Exporter
41
42       "use Mouse -metaclass => ..." are not implemented.  Use "use Mouse
43       -traits => ..." instead.
44
45       Mouse::Meta::Attribute::Native
46
47       Native traits are not supported directly, but "MouseX::NativeTraits" is
48       available on CPAN. Once you have installed it, you can use it as the
49       same way in Moose. That is, native traits are automatically loaded by
50       Mouse.
51
52       See MouseX::NativeTraits for details.
53
54   Notes about Moose::Cookbook
55       Many recipes in Moose::Cookbook fit Mouse, including:
56
57       ·   Moose::Cookbook::Basics::Recipe1 - The (always classic) Point
58           example
59
60       ·   Moose::Cookbook::Basics::Recipe2 - A simple BankAccount example
61
62       ·   Moose::Cookbook::Basics::Recipe3 - A lazy BinaryTree example
63
64       ·   Moose::Cookbook::Basics::Recipe4 - Subtypes, and modeling a simple
65           Company class hierarchy
66
67       ·   Moose::Cookbook::Basics::Recipe5 - More subtypes, coercion in a
68           Request class
69
70       ·   Moose::Cookbook::Basics::Recipe6 - The augment/inner example
71
72       ·   Moose::Cookbook::Basics::Recipe7 - Making Moose fast with immutable
73
74       ·   Moose::Cookbook::Basics::Recipe8 - Builder methods and lazy_build
75
76       ·   Moose::Cookbook::Basics::Recipe9 - Operator overloading, subtypes,
77           and coercion
78
79       ·   Moose::Cookbook::Basics::Recipe10 - Using BUILDARGS and BUILD to
80           hook into object construction
81
82       ·   Moose::Cookbook::Roles::Recipe1 - The Moose::Role example
83
84       ·   Moose::Cookbook::Roles::Recipe2 - Advanced Role Composition -
85           method exclusion and aliasing
86
87       ·   Moose::Cookbook::Roles::Recipe3 - Applying a role to an object
88           instance
89
90       ·   Moose::Cookbook::Meta::Recipe2 - A meta-attribute, attributes with
91           labels
92
93       ·   Moose::Cookbook::Meta::Recipe3 - Labels implemented via attribute
94           traits
95
96       ·   Moose::Cookbook::Extending::Recipe3 - Providing an alternate base
97           object class
98

SEE ALSO

100       Mouse
101
102       Moose
103
104       Moose::Manual
105
106       Moose::Cookbook
107
108
109
110perl v5.12.0                      2010-05-08                    Mouse::Spec(3)
Impressum