SpringFlowers AutumnMoon wrote: > if foo is undefined, it will throw exception when referred to... as in > try 1, 2, and 3 below. However, it won't throw exception when assigned > to himself... how is that interpreted? > > irb(main):004:0> foo = foo || 0 > => 0 > > irb(main):005:0> foo > => 0 Maybe your Variable/Method Ambiguity thread applies here? if false foo = 10 end puts foo #nil -- Posted via http://www.ruby-forum.com/.