perl-MooseX-Final - mark a class as "final" (cannot be inherited from)

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-MooseX-Final
Package version 0.001
Package release alt1
Package architecture noarch
Package type rpm
Installed size 24.80 KB
Download size 24.80 KB
Official Mirror
This package allows you to mark a class as being "final". A final class
is at the top of the inheritance hierarchy. It cannot be inherited from.
You almost certainly don't want this. Why prevent people from inheriting
from your class? There's no good reason.
Nevertheless, if you have a bad reason, you can use this module to do it.
Despite the name, this module should work fine with the Moose manpage, the Moo manpage,
the Mouse manpage, the Class::Tiny manpage, and any other class builder that properly
supports the concept of `BUILD' methods.
This is not 100% foolproof. Subclasses can probably work around it
without a massive amount of difficulty. But if you're trying to subclass
a class that has indicated it should be final, perhaps you should think
of another way of achieving your aims. (Hint: delegation.)
Note that the exception is thrown when you try to *instantiate* the
subclass, not when you try to define the subclass.


Package Version Architecture Repository
perl-MooseX-Final - - -


Name Value
/usr/share/perl5 -
perl(Exporter/ >= 1.0
rpmlib(PayloadIsLzma) -


Name Value
perl(MooseX/ = 0.001
perl-MooseX-Final = 0.001-alt1


Type URL
Binary Package perl-MooseX-Final-0.001-alt1.noarch.rpm
Source Package perl-MooseX-Final-0.001-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-MooseX-Final rpm package:
    # sudo apt-get install perl-MooseX-Final



See Also

Package Description
perl-MooseX-FollowPBP-0.05-alt2_9.noarch.rpm Names accessors in the I<Perl Best Practices> style
perl-MooseX-FunkyAttributes-0.003-alt1.1.noarch.rpm add code smell to your Moose attributes
perl-MooseX-Getopt-Defanged-1.18.0-alt1.1.noarch.rpm Standard processing of command-line options, with Getopt::Long's nasty behavior defanged
perl-MooseX-Getopt-Explicit-0.03-alt1.1.noarch.rpm MooseX::Getopt, but without implicit option generation
perl-MooseX-Getopt-Kingpin-0.1.2-alt1.noarch.rpm A Moose role for processing command lines options via Getopt::Kingpin
perl-MooseX-Getopt-Usage-0.24-alt1.1.noarch.rpm Extend MooseX::Getopt with usage message and man page generated from attribute meta and POD
perl-MooseX-GlobRef-0.0701-alt1_22.noarch.rpm Store a Moose object in glob reference
perl-MooseX-Graph-Easy-StateMachine-0.01-alt1.1.noarch.rpm declare state subclasses using Graph::Easy syntax and Any::Moose
perl-MooseX-HandlesConstructor-0.001-alt1.1.noarch.rpm Moo[se] extension that allows for setting handle accessors with the constructor
perl-MooseX-Has-Options-0.003-alt1_15.noarch.rpm Succinct options for Moose
perl-MooseX-HasDefaults-0.03-alt1_11.noarch.rpm Default "is" to "ro" or "rw" for all attributes
perl-MooseX-IOC-0.03-alt1.1.noarch.rpm Moose attributes with IOC integration
perl-MooseX-InlineTypes-0.003-alt1.1.noarch.rpm declare type constraints and coercions inline with coderefs
perl-MooseX-InstanceTracking-0.06-alt1.1.noarch.rpm Trait for tracking all instances of a class
perl-MooseX-Interface-0.008-alt1_4.noarch.rpm Random thoughts that might one day become a proper tutorial