[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Namespaces, inverted

e

12/30/2004 10:55:00 PM

> Lähettäjä: "Robert Klemme" <bob.news@gmx.net>
> We would have to think about what happens if a wrapped module requires
> another module.

I don't think anything will. Try this:

module Test
require 'thread'
end

m = Test::Mutex.new

Should cause an error.

E



1 Answer

Robert Klemme

12/31/2004 12:42:00 PM

0


"E S" <eero.saynatkari@kolumbus.fi> schrieb im Newsbeitrag
news:20041230225508.YVYV5992.fep32-app.kolumbus.fi@mta.imail.kolumbus.fi...
>> Lähettäjä: "Robert Klemme" <bob.news@gmx.net>
>> We would have to think about what happens if a wrapped module requires
>> another module.
>
> I don't think anything will. Try this:
>
> module Test
> require 'thread'
> end
>
> m = Test::Mutex.new
>
> Should cause an error.

There's probably a misunderstanding: I was not talking about actual behavior
but about the behavior of the suggested new include / require functionality
that was capable of wrapping loaded code in a module.

Regards

robert