ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:41410] [ruby-trunk - Bug #5691][Open] rb_path2class raises a NameError if a constant in the path exists on toplevel
@ 2011-11-30 13:21 Yui NARUSE
  0 siblings, 0 replies; only message in thread
From: Yui NARUSE @ 2011-11-30 13:21 UTC (permalink / raw
  To: ruby-core


Issue #5691 has been reported by Yui NARUSE.

----------------------------------------
Bug #5691: rb_path2class raises a NameError if a constant in the path exists on toplevel
http://redmine.ruby-lang.org/issues/5691

Author: Yui NARUSE
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2011-11-30 trunk 33906) [x86_64-freebsd9.0] 


An exception from rb_path2class differs on strange context.

% ./ruby -r./spec/rubyspec/optional/capi/ext/class_spec.so -e'CApiClassSpecs.new.rb_path2class("CApiClassSpecs::X")'
-e:1:in `rb_path2class': undefined class/module CApiClassSpecs::X (ArgumentError)
% ./ruby -r./spec/rubyspec/optional/capi/ext/class_spec.so -e'X=1;CApiClassSpecs.new.rb_path2class("CApiClassSpecs::X")'
-e:1:in `rb_path2class': uninitialized constant CApiClassSpecs::X (NameError)


-- 
http://redmine.ruby-lang.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-30 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 13:21 [ruby-core:41410] [ruby-trunk - Bug #5691][Open] rb_path2class raises a NameError if a constant in the path exists on toplevel Yui NARUSE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).