On Thu, 1 Feb 2001, Nathan Wiger wrote:
> There's the big problem of overlapping function names. If I say:
>
> $name = param('name');
>
> I probably mean "use CGI". But maybe there's some other module that has
> param() also? What if I really mean "use CGI::Minimal"?
Here's a gross thought (for implementors at least ;)
If it sees
use CGI qw( param header );
the autoloader could look for a module which implements the 'CGI'
interface and has those two functions. This could be CGI or CGI::Minimal.
Then there needs to be a way to figure out which to load. Hopefully the
smallest/quickest.
And code that does this:
use CGI qw( param header heavy_lifting );
Would get CGI.pm.
If the loading is done based on interface implementation (there's a nice
nebulous idea) this could be very slick (and very hairy to implement).
Just a thought.
-dave
/*==================
www.urth.org
We await the New Sun
==================*/
- Re: Really auto autoloaded modules Simon Cozens
- Re: Really auto autoloaded modules Jarkko Hietaniemi
- Re: Really auto autoloaded modules Dan Sugalski
- Re: Really auto autoloaded modules Tim Bunce
- Re: Really auto autoloaded modules Simon Cozens
- Re: Really auto autoloaded modules Michael G Schwern
- Re: Really auto autoloaded modules Tim Bunce
- Re: Really auto autoloaded modules Simon Cozens
- Re: Really auto autoloaded modules Dan Sugalski
- Re: Really auto autoloaded modules Nathan Wiger
- Re: Really auto autoloaded modules Dave Rolsky
- Re: Really auto autoloaded modules Dan Sugalski
- Re: Really auto autoloaded modules Ken Fox
- Re: Really auto autoloaded modules Ted Ashton
- Re: Really auto autoloaded modules Nathan Wiger
- Re: Really auto autoloaded modules Johan Vromans
- Re: Really auto autoloaded modules Dan Sugalski
- Re: Really auto autoloaded modules Michael G Schwern
- Re: Really auto autoloaded modules Dan Sugalski
- Re: Really auto autoloaded modules Michael G Schwern
