From: ts Date: 2003-04-14T19:09:26+09:00 Subject: Re: tutorial on embedding ruby (review) >>>>> "S" == Steve Hart writes: S> I'll find out soon enough since I need to be able to do this. I'm also S> still a bit unclear about 'anonymous module' - if it's anonymous how S> do you reference it?. All I know is that if I pass in 1 my call S> crashes with uninitialized 'constant (NameError)' You don't reference it : one use is when you don't want the the loaded file 'pollute' your classes. A small example to see the difference pigeon% cat c.rb #!/usr/bin/ruby class A def a p "c.rb : b" end end A.new.a pigeon% pigeon% cat b.rb #!/usr/bin/ruby class A def a p "b.rb : a" end end load 'c.rb', true A.new.a load 'c.rb' A.new.a pigeon% pigeon% b.rb "c.rb : b" "b.rb : a" "c.rb : b" "c.rb : b" pigeon% Guy Decoux