From: Sean Chittenden Date: 2002-04-08T14:48:34+09:00 Subject: Re: Exception instances... > |I don't understand where the following warning is coming from: > > Because you skipped the "initialize" of Exception. You have to call > "super" in your version of "initialize". I'm still not sure you will > get what you want. > > The behavior differs in 1.7; It will not give you warning. Not only will it not give you a warning, but 1.7.2 does the expected behavior. Hmm... alright. When is 1.8 coming out? Or will this be something that will be MFC'ed back from HEAD to 1.6? -sc > 1.6 without super > > ruby 1.6.7 (2002-03-19) [i386-linux] > Start > /tmp/e.rb:12: warning: instance variable mesg not initialized > TestingError > Just testing... > Finish. > > 1.6 with super > > ruby 1.6.7 (2002-03-19) [i386-linux] > Start > Just testing... > Just testing... > Finish. > > 1.7 without super > > ruby 1.7.2 (2002-03-29) [i686-linux] > Start > Just testing... > booga? > Finish. > > 1.7 with super > > ruby 1.7.2 (2002-03-29) [i686-linux] > Start > Just testing... > booga? > Finish. -- Sean Chittenden