in reply to More then one AUTOLOAD in a class hierarchy.
NEXT.pm adds a pseudoclass named NEXT to any program that uses it. If +a method m calls $self-NEXT::m()>, the call to m is redispatched as i +f the calling method had not originally been found. In other words, a call to $self-NEXT::m()> resumes the depth-first, le +ft-to-right search of $self's class hierarchy that resulted in the or +iginal call to m. [...] Another typical use of redispatch would be in AUTOLOAD'ed methods. If +such a method determined that it was not able to handle a particular +call, it might choose to redispatch that call, in the hope that some +other AUTOLOAD (above it, or to its left) might do better.
Sounds like you could use this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: More then one AUTOLOAD in a class hierarchy.
by ced (Initiate) on Nov 11, 2004 at 20:25 UTC |