Project

General

Profile

Actions

Bug #632

closed

StringIO has an odd alias implementation [?]

Added by rogerdpack (Roger Pack) almost 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
Backport:
[ruby-core:19282]

Description

=begin
Here's my situation:

require 'stringio'
class C < StringIO
alias :old_init :initialize
def initialize
old_init
end
end
C.new # fails 1.9, succeeds 1.8.6

normal classes:

class A
def initialize
print 'A init'
end
end
class B < A
alias :old_init :initialize
def initialize
old_init
end
end
B.new # succeeds 1.9, 1.8

Thanks for your help! I know I'm annoying with this.
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #730: Infinite recursion on 'super' in dynamically generated modulesClosedko1 (Koichi Sasada)11/09/200812/24/2008Actions
Actions

Also available in: Atom PDF