Fukurama::Class::Extends - Pragma to extend class inheritation
Version 0.01 (beta)
package MyClass; use Fukurama::Class::Extends('MyParent');
This pragma-like module provides some extra check features for inheritation at compiletime. It would check that your parent Module is loaded and that in multi-inheritation there is no subroutine-conflict. Use Fukurama::Class instead, to get all the features for OO.
You can define the check-level which describes how the module will check inheritations. The following levels are allowed:
There is no check. If you use this level, it's like you use use base qw(...). There are no side effects. This level is recommended for production.
All registration processes are executed, but there would be no check.
All classes, which use this module would checked for Multi-inheritation-conflicts.
All classes, which use this module AND all childs of these classes would checked for Multi-inheritation-conflicts. This is the default behavior when you does'n change the check-level.
All classes would checked for Multi-inheritation-conflicts. This means really ALL classes. Even all perl-internals. This level is only for the sake of completeness.
-
Helper-method, which would executed by every pragma usage.
Helper method for static perl (see Fukurama::Class > BUGS)
Helper method to register needed handler in Fukurama::Class::Tree
see perldoc of Fukurama::Class
To install Fukurama::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fukurama::Class
CPAN shell
perl -MCPAN -e shell install Fukurama::Class
For more information on module installation, please visit the detailed CPAN module installation guide.