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
==================*/

Reply via email to