Lines Matching refs:class
163 NEXT.pm - Provide a pseudo-class NEXT (et al) that allows method redispatch
208 left-to-right search of C<$self>'s class hierarchy that resulted in the
213 of the current class. C<$self-E<gt>NEXT::m()> can backtrack
214 past the current class -- to look for a suitable method in other
217 A typical use would be in the destructors of a class hierarchy,
218 as illustrated in the synopsis above. Each class in the hierarchy
219 has a DESTROY method that performs some class-specific action
221 when an object of class D is destroyed, the destructors of I<all>
231 elsewhere in the objects class hierarchy, it quietly gives up and does
280 If C<NEXT> redispatching is used in the methods of a "diamond" class hierarchy:
307 then derived classes may (re-)inherit base-class methods through two or
383 Yet another pseudo-class that NEXT.pm provides is C<EVERY>.
419 appropritae method of a derived class must be called before the same method of
420 any ancestral class. That's why, in the above example, C<X::foo> is called
429 "ancestors"). In that case, instead of using the C<EVERY> pseudo-class:
433 you can use the C<EVERY::LAST> pseudo-class:
479 et cetera. Every derived class than needs its own clean-up
484 Likewise, to create a class hierarchy in which every initializer inherited by
489 my ($class, %args) = @_;
490 my $obj = bless {}, $class;
508 et cetera. Every derived class than needs some additional initialization