[#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:23192] [Bug #1376] inline symbols/fixnums in a case expression do not honor an overwritten #=== method

From: Heesob Park <redmine@...>
Date: 2009-04-13 08:28:29 UTC
List: ruby-core #23192
Issue #1376 has been updated by Heesob Park.


In case of variable, it works.

class Symbol
  def ===(o)
    p 42
    true
  end
end

# this works
a = :foo
case :foo
  when a
    p 'a'
end

# this dosen't work
case :foo
  when :foo
    p 'b'
end




----------------------------------------
http://redmine.ruby-lang.org/issues/show/1376

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

In This Thread