it is correct that M::X does not look for X in Object
-----------------------------------------------------
Key: JRUBY-4643
URL: http://jira.codehaus.org/browse/JRUBY-4643
Project: JRuby
Issue Type: Bug
Reporter: Xavier Noria
Assignee: Thomas E Enebo
Priority: Trivial
jruby-1.4.0 > X = 1; module M; end; M::X
(irb):7 warning: already initialized constant X
NameError: uninitialized constant M::X
from
/Users/fxn/.rvm/rubies/jruby-1.4.0/lib/ruby/1.8/irb/ruby-token.rb:102:in
`const_missing'
from (irb):7:in `irb_binding'
Maybe IRB bug!!
The Ruby spec draft was just been edited to match that behavior, see
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/28600
and
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/28620
So I suggest the "Maybe IRB bug!!" warning can be removed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email