From: David Garamond Date: 2004-02-27T01:07:27+09:00 Subject: Re: Why don't $global and @instance variables need *initialization*? Robert Klemme wrote: >>Making Ruby raise NameError when an uninitialized global or instance >>variable is accessed (just like when a new local variable is mentioned >>without being assigned first). > > Why do you need that? Help in detecting typo? def foo @barbaz = ... ... @quux = 1 if @barrbaz != ... # typo end -- dave