From: tsela.cg@... Date: 2007-04-04T23:00:10+09:00 Subject: Re: Everything is a object? On Apr 4, 3:37 pm, James Edward Gray II wrote: > > Not "exactly equivalent." It also silences the warning: > > $ ruby -we 'class Test; def var; @var; end; end; p Test.new.var' > -e:1: warning: instance variable @var not initialized > nil > $ ruby -we 'class Test; attr_reader :var; end; p Test.new.var' > nil > I didn't know about that one. Thanks. Also, thanks for pointing out the global variables, I had forgotten about them :) . Christophe.