From: Tony Arcieri Date: 2008-01-04T11:51:21+09:00 Subject: #initialize never called in subclasses of Fiber ------=_Part_18732_30326650.1199415078215 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm doing an Actor implementation which subclasses Fiber, and I'm encountering this problem: class Foo < Fiber def initialize(&block) puts "Never called" super end end >> Foo.new {} => # Is this intentional for some reason, or just a bug? I noticed Fiber.allocate doesn't exist, so I'm guessing it's doing something interesting with Fiber.new... -- Tony Arcieri ClickCaster, Inc. tony@clickcaster.com ------=_Part_18732_30326650.1199415078215 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm doing an Actor implementation which subclasses Fiber, and I'm encountering this problem:

class Foo < Fiber
  def initialize(&block)
    puts "Never called"
    super
  end
end

>> Foo.new {}
=> #<Foo:0x3aee7c>

Is this intentional for some reason, or just a bug?  I noticed Fiber.allocate doesn't exist, so I'm guessing it's doing something interesting with Fiber.new...

--
Tony Arcieri
ClickCaster, Inc.
tony@clickcaster.com ------=_Part_18732_30326650.1199415078215--