On Mon, 14 May 2001, Sean Russell wrote:

> But this doesn't work in the following case:
> 
> module A ; def initialize ; puts "A" ; end ; end
> class B ; def initialize ; puts "B" ; end ; end
> class C < B ; include A ; def initialize ; puts "C" ; end ; end
> 
> c=C.new

You have to call your superclass explicitly.  Try this:

module A ; def initialize ; super ; puts "A" ; end ; end
class B ; def initialize ; puts "B" ; end ; end
class C < B ; include A ; def initialize ; super ; puts "C" ; end ; end

   - Eric B.

--
"Because inheritance is super!"