develooper Front page | perl.perl6.language | Postings from February 2001

Really auto autoloaded modules

Thread Next
From:
Dan Sugalski
Date:
February 1, 2001 07:14
Subject:
Really auto autoloaded modules
Message ID:
5.0.2.1.0.20010201100632.024c9bd8@24.8.96.48
Since everyone's spinning aimlessly around, I'll throw out something for 
everyone to think about, and perhaps we can get a PDD out of it.

One of the features of perl 6 is going to be the ability to automatically 
use a module if one or more preregistered functions are used in your 
source. So, for example, if we pull out the socket routines into a separate 
module but your code uses one of the socket routines, we automagically use 
the socket module. The fact that it's separate is completely invisible to 
your program. The module loaded can define the routines as either regular 
perl subs or opcode functions (the difference is in calling convention 
mainly) and could be the standard mix of perl or compiled code.

Would someone care to take a shot at formalizing the system? We need a way 
to register these functions, track the module version (if any) they're in, 
and stuff like that. (Including, I'm sure, things I've forgotten)

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About