>>>>> "E" == Eric Schwartz <emschwar / fc.hp.com> writes:

E>   All this takes effect in the most restrictive lexical scope
E>   available.  If you do this inside a class definition, only that
E>   class will be able to use the short forms.  If you do it inside
E>   another module definition, the entire module can use those short
E>   forms. [ true?  false?  I'm not sure about this one. -- eric ]  If
E>   you do it at the top of a file, everything in that file can use the
E>   short forms.

 Well, I've not understood what you are trying to say. Can you explain what
 is "the most restrictive lexical scope available" ?

pigeon% cat c.rb
module M
   class A
   end
end

include M
pigeon% 

pigeon% cat b.rb
#!/usr/bin/ruby
require 'c'
p A.new
pigeon% 

pigeon% b.rb
#<M::A:0x401ad860>
pigeon% 



Guy Decoux