Issue #790 has been updated by Florian Gilcher.


Sorry, hit the wrong button:

Fibers as superclass don't call initialize of derived class. This is probably intended, but not documented.

Description by Wolfgang NĂ¡dasi-Donner:

The following code...

class Hugo < Fiber
   def initialize(&b)
     puts "in 'Hugo'" # !!! never executed !!!
     super(&b)
   end
end

h = Hugo.new{42}
p h

...results in...

 >ruby19 myfiber_test.rb
#<Hugo:0xb24ee0>
 >Exit code: 0

...which I didn't expect.

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

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