From: Hugh Sasse Staff Elec Eng Date: 2003-12-10T05:24:27+09:00 Subject: Re: Inheriting variables, super, and "not super"? On Wed, 10 Dec 2003, T. Onoma wrote: > On Tuesday 09 December 2003 06:17 pm, Hugh Sasse Staff Elec Eng wrote: > > I'm not sure I understand you, but I'm interested in what it is you are > attempting. Might you not use a redefinable responder method? (aka don't > forget about our tusting duck typing ;) > > class Y < Z > def initialize() > @y_var = 0 > if initiator == Y > y_init > end > end > def initiator > Y > end > end > > class X < Y [...] > def initiator > X > end > end > Yes, that might be better. I wonder if we can avoid having to repeat the method definition though? > T. > > > Any ideas? Apart from "If you're in a hole, stop digging" :-) > > Dig to China! :) I think from here (.ac.uk) it would be Australia :-) > Hugh