From: Logan Capaldo Date: 2004-11-12T10:30:26+09:00 Subject: Re: warning: redefining Object#initialize may cause infinite loop I think his problem is he's writing things like: class SomeNewClass def initialise .... end end which is why he wants Object#initialize to call initialise On Fri, 12 Nov 2004 10:11:37 +0900, Brian Palmer wrote: > Unless I'm minsreading what you want to do, wouldn't it be > > def initialise > initialize > end > > The way you're doing it now, you're re-defining the "real" initialize > method to redirect to the fake one. > > - B > > > > > Stu wrote: > > >Is there anyway I can supress this warning? > > > >I tried setting $VERBOSE = FALSE before then > >back to TRUE after my bit of code but nothing... > > > >I seem to unconciously miscode initialize to initialise. > >every. single. time. > > > >so I did > > > >class Object > > def initialize > > initialise > > end > >end > > > >while it works, it throws the hissy error > >warning: redefining Object#initialize may cause infinite loop > > > >I just want to supress the error in my code. > > > > > > > >-- Dark Fiber -- > >[FAQ] Write Your Own Operating System > > http://www.mega-tokyo.com/osfaq2 > >3x3 Eyes Fanfiction Archive > > http://www.mega-tokyo.com/pai > > > > > > > > > > > > > >