In general, I would expect that almost no one should ever use AUTOLOAD. That's a feature for use when you don't know until call-time whether a given method is going to be valid or not. If you know this at compile time, do your sub generation then. If you know it at db connection time, do it then. Whatever. In general, the time to generate subs is not during the statement you're using it in.
Consider what happens to the maintenance programmer (or just some debugger program) when a method can't be detected as existing until it has been called at least once. Its ugly and it isn't being nice.
In reply to Re^9: Modules for autogenerating accessor/mutator methods
by diotalevi
in thread Modules for autogenerating accessor/mutator methods
by srdst13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |