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
Moose::Policy::SingleInheritence(3) User Contributed Perl Documentation Moose::Policy::SingleInheritence(3)
 

Moose::Policy::SingleInheritence - Why would you ever need more than one?

  package Foo;
  
  use Moose::Policy 'Moose::Policy::SingleInheritence';
  use Moose;
  
  package Bar;
  
  use Moose::Policy 'Moose::Policy::SingleInheritence';
  use Moose;
  
  package Foo::Bar;
  
  use Moose::Policy 'Moose::Policy::SingleInheritence';
  use Moose;
  
  extends 'Foo', 'Bar';  # BOOM!!!!

Moose::Policy is deprecated.

This module restricts Moose's "extends" keyword so that you can only assign a single superclass.
This is mostly an example of how you can restrict behavior with meta-policies in addition to extending and/or customising them. However, sometimes enforcing a policy like this can be a good thing.

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

Stevan Little <stevan@iinteractive.com>

Copyright 2006-2007 by Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2010-11-21 perl v5.28.1

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

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