Re: What do use and require evaluate to?

2005-07-14 Thread Piers Cawley
Larry Wall [EMAIL PROTECTED] writes: On Tue, Jul 12, 2005 at 08:48:41PM +0300, Gaal Yahas wrote: : I propose to throw away the filesystem coupling, and map from a more : general name of the bit of code we are requiring to a more general : description of which instance of it we actually got.

Re: What do use and require evaluate to?

2005-07-14 Thread Larry Wall
On Thu, Jul 14, 2005 at 11:09:40AM +0100, Piers Cawley wrote: : So long as there's some way of asking the garbage collector for everything in : the live set so you can grep through them I'm sure you're right. Because almost : everything is extensible at runtime a class is going to need some way

Re: What do use and require evaluate to?

2005-07-13 Thread Larry Wall
On Tue, Jul 12, 2005 at 08:48:41PM +0300, Gaal Yahas wrote: : I propose to throw away the filesystem coupling, and map from a more : general name of the bit of code we are requiring to a more general : description of which instance of it we actually got. Once modules return : interesting values,

What do use and require evaluate to?

2005-07-12 Thread Ingo Blechschmidt
Hi, what do use and require evaluate to? S06 suggests it's probably some kind of Module object: The result of a use statement is a (compile-time) object that also has an .assuming method, allowing the user to bind parameters in all the module's subroutines/methods/etc

Re: What do use and require evaluate to?

2005-07-12 Thread Gaal Yahas
On Tue, Jul 12, 2005 at 12:15:30PM +, Ingo Blechschmidt wrote: In Perl 5, %INC maps the partial path names of the modules loaded to their absolute ones. What should the keys and values of %*INC be in Perl 6? Conceptually, the Perl 5 %INC maps from what to which. It also imposes a

Re: What do use and require evaluate to?

2005-07-12 Thread Larry Wall
On Tue, Jul 12, 2005 at 12:15:30PM +, Ingo Blechschmidt wrote: : Hi, : : what do use and require evaluate to? : : S06 suggests it's probably some kind of Module object: : The result of a use statement is a (compile-time) object that also has : an .assuming method