From: David Garamond Date: 2004-02-26T22:48:30+09:00 Subject: Re: Why don't $global and @instance variables need *initialization*? ts wrote: >>>>>>"D" == David Garamond writes: > D> NameError: undefined local variable or method `a' for main:Object > ^^^^^^^^^^^^^^^^^^^^^^^^ > > The message is important : ruby don't know if it's a variable or a method > and can't initialize it. I see. I thought Ruby's intention was to protect someone from making a stupid mistake of using uninitialized variables (ala Python). But then I remember Ruby has the -w switch, so I guess Ruby never enforces this and just gives a warning. -- dave