in reply to intercept nonexistent methods call
If you don't want how inheritance dispatches method calls, maybe inheritance is the wrong way?
Just create a separate class that inherits nothing and has an object of your "real" class. Give that class an AUTOLOAD method. In that AUTOLOAD method, log the calls and then either dispatch to the "real" class instance or whatever.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: intercept nonexistent methods call
by Bor (Beadle) on Aug 04, 2011 at 10:24 UTC | |
by Bor (Beadle) on Aug 04, 2011 at 11:24 UTC |