in reply to •Re: RFC: Class::DispatchToAll
in thread RFC: Class::DispatchToAll
If both Mother and Father have DESTROY methods, what happens? Under normal Perl semantics, only Mother::DESTROY would be called, since it's the left-most, depth-first method encountered during the dispatch. But failing to call one (or more) of an object's inherited destructors is not correct behaviour. Hence the need to be able to call all of them:package Child; use base qw(Mother Father);
package Child; use base qw(Mother Father); sub DESTROY { $_[0]->EVERY::DESTROY }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: •Re: RFC: Class::DispatchToAll
by dws (Chancellor) on Jul 11, 2002 at 06:03 UTC | |
by Abigail-II (Bishop) on Jul 11, 2002 at 11:07 UTC | |
•Re: Re: •Re: RFC: Class::DispatchToAll
by merlyn (Sage) on Jul 11, 2002 at 15:22 UTC |