Have Ruby warnings about uninitialized instance variables gotten more verbose in the past year?

B

Bill McNeill

I just ran the unit tests on some code I haven't touched since
November 2006. The last time I checked, the unit tests ran without a
hitch, but now I'm getting lots of "warning: instance variable ... not
initialized" warnings. The warning looks legit, but I'm confused
because I don't think I've changed anything on my end that would cause
it to suddenly appear. Have Ruby versions released in the past year
gotten more verbose about this warning?
 
E

Eric Hodel

I just ran the unit tests on some code I haven't touched since
November 2006. The last time I checked, the unit tests ran without a
hitch, but now I'm getting lots of "warning: instance variable ... not
initialized" warnings. The warning looks legit, but I'm confused
because I don't think I've changed anything on my end that would cause
it to suddenly appear. Have Ruby versions released in the past year
gotten more verbose about this warning?

No.

$ ruby168 -wve 'p @foo'
ruby 1.6.8 (2002-12-24) [powerpc-darwin8.2.0]
-e:1: warning: instance variable @foo not initialized
nil

Maybe you added "-w" ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top