| Fukurama-Class documentation | view source | Contained in the Fukurama-Class distribution. |
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
| Fukurama-Class documentation | view source | Contained in the Fukurama-Class distribution. |