From: Aldric Giacomoni Date: 2010-04-16T21:30:32+09:00 Subject: Re: Ruby-warrior : Teaching AI concepts with Ruby akraynov wrote: > It seems local variable "state" has overriden my method "state". > This can be a source of many hidden bugs for those who well-skilled in > Delphi or C++. > Why Ruby doesn't give me any warning? Because it doesn't parse incorrectly; it just runs incorrectly. That's why you need to do what Jesus explained. The burden of intelligence is on the developer ;-) -- Posted via http://www.ruby-forum.com/.