[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23299] Re: Difference in constant lookup between 1.8 and 1.9

From: Michael Fellinger <m.fellinger@...>
Date: 2009-04-23 15:36:42 UTC
List: ruby-core #23299
On Thu, 23 Apr 2009 23:54:09 +0900
Michael Fellinger <m.fellinger@gmail.com> wrote:

> 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.
> 

Sorry, I forgot a title for this mail... my bad

-- 
^ manveru

In This Thread