in reply to Re: Re: How to measure Perl skills?
in thread How to measure Perl skills?
I'm not sure how AUTOLOAD breaks encapsulation, as the AUTOLOAD code can decide what is allowed and what isn't [die "Horribly" comes to mind]. And AUTOLOAD only needs to be called the first time an unregistered method is requested -- the symbol table hockey will avoid future AUTOLOAD calls on that method, at least.
But maybe you meant to just generate all of the sub refs at initialization, so all the methods didn't need explicit coding, just a method factory? Autogenerating all method code is probably faster than the AUTOLOAD runtime on just one method (for some values of all method code).
On further reflection, it sounds like we might be in violent agreement.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: (~OT) How to measure Perl skills?
by diotalevi (Canon) on Mar 24, 2004 at 23:40 UTC | |
by QM (Parson) on Mar 24, 2004 at 23:53 UTC | |
by diotalevi (Canon) on Mar 25, 2004 at 00:03 UTC | |
|
Re^4: (~OT) How to measure Perl skills?
by hardburn (Abbot) on Mar 25, 2004 at 04:52 UTC |