Query: class::mixinfactory::next
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MixinFactory::NEXT(3pm) User Contributed Perl Documentation MixinFactory::NEXT(3pm)NAMEClass::MixinFactory::NEXT - Superclass method redispatch for mixinsSYNOPSISuse Class::MixinFactory::NEXT; package My::BaseClass; sub foo { return "Foo Bar" } package My::Logging; sub foo { warn "Calling foo"; (shift)->NEXT('foo', @_) } package My::MixedClass; @ISA = ( 'My::Logging', 'My::BaseClass', 'Class::MixinFactory::NEXT'; ); package main; print My::MixedClass->foo();DESCRIPTIONEnhanced superclass method dispatch for use inside mixin class methods. Allows mixin classes to redispatch to other classes in the inheritance tree without themselves inheriting from anything. Public Methods This package defines one method, named NEXT. $callee->NEXT( $method, @args ); Searches the inheritance tree of the callee until it finds the package from which NEXT is being called, and then continues searching until the next class which can perform the named method. Unlike SUPER, this method will backtrack down the inheritance tree to find implementations later in the search path even if they are on a separate branch.SEE ALSOThis class is automatically included by Class::MixinFactory. This is similar to the functionality provided by NEXT::ACTUAL, but without using AUTOLOAD; for a more generalized approach to this issue see NEXT. For distribution, installation, support, copyright and license information, see Class::MixinFactory::ReadMe. perl v5.10.1 2009-12-10 MixinFactory::NEXT(3pm)
Related Man Pages |
---|
next(3pm) - mojave |
next(3pm) - suse |
class::mixinfactory(3pm) - debian |
class::mixinfactory::hasafactory(3pm) - debian |
next5.16(3pm) - osx |
Similar Topics in the Unix Linux Community |
---|
Ctalk 0.0.32a (Default branch) |
Ctalk 0.0.33a (Default branch) |
Ctalk 0.0.34a (Default branch) |
Ctalk 0.0.35a (Default branch) |
WLM inheritance |