From: Sean Russell Date: 2001-05-15T03:37:50+09:00 Subject: [ruby-talk:15111] Re: Ruby Newbie questions -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Je Dimancxo 13 Majo 2001 17:11, vi skribis: > 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: I mistyped; I had a "super" in the constructor of C, but missed the "super" in module A. I see what is going on. === SER Deutsch|Esperanto|Francaise|Linux|Java|Aikido|Dirigibles|GPG === http://www.germane-software.com/~ser jabber.com:ser ICQ:83578737 Windows: a virus with mouse support -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.2 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7ACX6P0KxygnleI8RAj5dAJ0ed3MqgUi1CmdzBXmCk3ggMMKsTQCfaeWp 0XDMwqxDFcln9Wdb2LmeG38= =MAX2 -----END PGP SIGNATURE-----