On Tue, Oct 01, 2002 at 12:24:35PM +0200, Roland Giersig wrote: > After lurking for a while and seing that people are talking about > entirely different things, I would like to try to clear things up a > bit. What are we really talking about? Thanks. > Coming back to Elizabeths initial idea (which has a lot of merit IMHO): > what she proposed was (if I understood it correctly) to introduce a new > way of autoloading: instead of searching a method in plain text she > wants to extract the autoloaded subs body text at compiletime and also > compile a corresponding sub prototype, so that the compiler can do > prototype checking. Just for the record: both AutoLoader and SelfLoader extract prototypes: http://search.cpan.org/author/JHI/perl-5.8.0/lib/AutoLoader.pm#Subroutine_Stubs http://search.cpan.org/author/JHI/perl-5.8.0/lib/SelfLoader.pm#Classes_and_inherited_methods_ Though SelfLoader only does it it explicitly asked and so isn't a drop-in replacement for AutoLoader in that regard. (Also, it ought to be trivial to patch both so that "perl -c ..." or setting an env var triggers loading and compilation of all subs.) Tim.Thread Previous | Thread Next