in reply to Re: Subclassing a class that uses an internal dispatch table
in thread Subclassing a class that uses an internal dispatch table
I think you may have misread the source code of Client2. The variables $cmd, @args are not input parameters to get_message() but rather just local variable declarations:
sub get_message { my $self = shift; my($cmd, @args); ...
That doesn't negate your method, but does require you to modify the dispatching to check your dispatch table before dispatching any non-overridden methods to the superclass at the bottom of the read loop rather than at the top of the sub.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Subclassing a class that uses an internal dispatch table
by TOD (Friar) on Oct 30, 2007 at 06:30 UTC |