in reply to AUTOLOAD functions & inheritence
etc. You're not going to put in statements like that for every possible method that you're trying to trap in the AUTOLOAD, are you? Because that kind of defeats the purpose of having an AUTOLOAD method--if you're just testing for specific methods, why not define them in the first place?if ($fname eq 'foo') { ... }
This has a point, because my contention is that the example you've given us isn't all that helpful. AUTOLOAD should trap any methods that you don't explicitly handle in your code; so in package B, how do you know when you should pass a certain method on to A's AUTOLOAD? You're not just planning on explicitly testing for all of those cases in B, are you?
I'd like to get a better idea of what you're trying to do, because it's possible that you're asking an XYZ question. In other words, perhaps there's another way to do what you're doing, but I don't know what it could be, because I don't know what you're trying to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: AUTOLOAD functions & inheritence
by Anonymous Monk on Mar 30, 2000 at 02:43 UTC | |
by Anonymous Monk on Mar 30, 2000 at 04:02 UTC |