From: Joel VanderWerf Date: 2002-07-17T05:49:40+09:00 Subject: Re: alias_method problem mengx@nielsenmedia.com wrote: > But if for some reason the class is reloaded, The "oldone" will > point to the "newone" that is defined as above(calling the "oldone") > instead of the originally defined one. > Calling "newone" after the reloading ends up with stack overflow. > > I assume this had been brought up before. Any fix or workaround? It was discussed starting at: http://ruby-talk.org/34131 What about putting the alias operation in a different file from the rest of the class def? === A-alias.rb === class A alias ... end === A.rb === require "A-alias" class A def ... end end ============ This way, you can always reload A.rb without re-aliasing.