From: Eric Hodel Date: 2009-05-16T06:25:33+09:00 Subject: [ruby-core:23466] [Bug #1474] autoload causes "circular require considered harmful" warning without circular require Bug #1474: autoload causes "circular require considered harmful" warning without circular require http://redmine.ruby-lang.org/issues/show/1474 Author: Eric Hodel Status: Open, Priority: Normal ruby -v: ruby 1.9.2dev (2009-05-15 trunk 23433) [i386-darwin9.7.0] $ cat a.rb autoload :B, 'b' B $ cat b.rb class B end $ ruby19 -wv a.rb ruby 1.9.2dev (2009-05-15 trunk 23433) [i386-darwin9.7.0] Error loading gem paths on load path in gem_prelude no implicit conversion from nil to integer :320:in `[]=' :320:in `push_all_highest_version_gems_on_load_path' :344:in `' /Users/drbrain/tmp/b.rb:1: warning: loading in progress, circular require considered harmful - /Users/drbrain/tmp/b.rb ---------------------------------------- http://redmine.ruby-lang.org