On Thu, 28 Jun 2001 laotse / lumberjack.snurgle.org wrote: > I have a question about using alias_method. Here's what I'm trying > to do: > > class Redef > def hello > print "hello\n" > end > def rename > eval <<-ENDDEF > def hello > print "goodbye\n" > end > ENDDEF > end > end > > test = Redef.new > test.hello > test.rename > test.hello > > Okay, the above works just fine and dandy. [...] It does generate a warning under -w, though: hello (eval):1: warning: discarding old hello goodbye David -- David Alan Black home: dblack / candle.superlink.net work: blackdav / shu.edu Web: http://pirate.shu.edu/~blackdav