GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOUSE::SPEC (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

This document describes Mouse version v2.4.5

SYNOPSIS



    use Mouse::Spec;

    printf "Mouse/%s is compatible with Moose/%s\n",
        Mouse::Spec->MouseVersion, Mouse::Spec->MooseVersion;



DESCRIPTION

Mouse is a subset of Moose. This document describes to what extend Mouse is compatible (and incompatible) with Moose.

    Compatibility with Moose

Sugary APIs

The sugary APIs are highly compatible with Moose. Methods which have the same name as Moose’s are expected to be compatible with Moose’s.

Meta object protocols

Meta object protocols are a subset of the counterpart of Moose. Their methods which have the same name as Moose’s are expected to be compatible with Moose’s. Feel free to use these methods even if they are not documented.

However, there are differences between Moose’s MOP and Mouse’s. For example, meta object protocols in Mouse have no attributes by default, so $metaclass->meta->make_immutable() will not work as you expect. <B>Don not make metaclasses immutableB>.

Mouse::Meta::Instance

Meta instance mechanism is not implemented, so you cannot change the reftype of Mouse objects in the same way as Moose.

Role exclusion

Role exclusion, exclude(), is not implemented.

-metaclass in Mouse::Exporter

use Mouse -metaclass => ... are not implemented. Use use Mouse -traits => ... instead.

Mouse::Meta::Attribute::Native

Native traits are not supported directly, but MouseX::NativeTraits 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 MouseX::NativeTraits for details.

    Notes about Moose::Cookbook

Many recipes in Moose::Cookbook fit Mouse, including:
o Moose::Cookbook::Basics::Recipe1 - The (always classic) <B>PointB> example
o Moose::Cookbook::Basics::Recipe2 - A simple <B>BankAccountB> example
o Moose::Cookbook::Basics::Recipe3 - A lazy <B>BinaryTreeB> example
o Moose::Cookbook::Basics::Recipe4 - Subtypes, and modeling a simple <B>CompanyB> class hierarchy
o Moose::Cookbook::Basics::Recipe5 - More subtypes, coercion in a <B>RequestB> class
o Moose::Cookbook::Basics::Recipe6 - The augment/inner example
o Moose::Cookbook::Basics::Recipe7 - Making Moose fast with immutable
o Moose::Cookbook::Basics::Recipe8 - Builder methods and lazy_build
o Moose::Cookbook::Basics::Recipe9 - Operator overloading, subtypes, and coercion
o Moose::Cookbook::Basics::Recipe10 - Using BUILDARGS and BUILD to hook into object construction
o Moose::Cookbook::Roles::Recipe1 - The Moose::Role example
o Moose::Cookbook::Roles::Recipe2 - Advanced Role Composition - method exclusion and aliasing
o Moose::Cookbook::Roles::Recipe3 - Applying a role to an object instance
o Moose::Cookbook::Meta::Recipe2 - A meta-attribute, attributes with labels
o Moose::Cookbook::Meta::Recipe3 - Labels implemented via attribute traits
o Moose::Cookbook::Extending::Recipe3 - Providing an alternate base object class

SEE ALSO

Mouse

Moose

Moose::Manual

Moose::Cookbook

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOUSE::SPEC (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.