From: dblack@... Date: 2002-12-12T02:14:11+09:00 Subject: Re: warning: discarding old ? Hi -- On Thu, 12 Dec 2002, Lind, Juergen wrote: > Hi folks, > > why does this warning come up? > What might be wrong with my code? The warning ("discarding old ") comes up when you discard an old method :-) It basically means that you've overridden a method without saving a path to the old version of the method. For example: class String def split; end end However, if you do this: class String alias :oldsplit :split def split; end end the old method is still available (as oldsplit), so it has not been discarded and there's no warning. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav