Bugs: Browse | Submit New | Admin

[#17700] SimpleDelegator delegates #class, but shouldn't

Date:
2008-02-01 12:06
Priority:
3
Submitted By:
Sam Ruby (rubys)
Assigned To:
Yukihiro Matsumoto (matz)
Category:
Language / Runtime / Core Libraries
State:
Open
Platform:
 
Summary:
SimpleDelegator delegates #class, but shouldn't

Detailed description
Test case:

require 'delegate'
class C < SimpleDelegator; end
p C.new('').class

In Ruby 1.8.6, the result is "C".  In Ruby 1.9.0, the value is "String".

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-11-07 18:40
Sender: Roger Pack

looks like they're both "C" now.
Date: 2008-02-21 09:08
Sender: Shyouhei Urabe

Assigning to matz.  I cannot say if this is a bug or a feature.

Attached Files:

Name Description Download
delegate.patch Download

Changes:

Field Old Value Date By
assigned_toshyouhei2008-02-21 09:08shyouhei
File Added3311: delegate.patch2008-02-04 18:50rubys