From: Michael Fellinger Date: 2009-04-23T23:54:09+09:00 Subject: [ruby-core:23296] Re: Hello, I was wondering about a change in constant lookup behaviour between the 1.8 and 1.9 lines. Given following source, which runs fine on 1.8, but will raise: undefined method `dirname' for Rack::File:Class (NoMethodError) ################################################################### module Rack class File end class Builder def initialize(&block) instance_eval(&block) end end end Rack::Builder.new{ File.dirname("foo") } ################################################################### This is boiled down from a real-world example where i got exactly this error when running in 1.9. I know i can fix that by referencing `::File::dirname`, but it would be nice to know definitely whether we can rely on this new behaviour. -- ^ manveru