Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.ruby Subject: Re: confusion with local variable assignment Date: Fri, 11 Apr 2014 19:41:00 +0200 Lines: 14 Message-ID: References: <3d3ebc5f-5c80-459e-963e-a3ffbea1dcec@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 25g9fLyz4WXA43OM7er3ZwCoIIbV27Fz9ykUOnhvKCLygaZlg= Cancel-Lock: sha1:hirYSXxcHApns5vFk8oMCxyzHUs= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <3d3ebc5f-5c80-459e-963e-a3ffbea1dcec@googlegroups.com> Xref: csiph.com comp.lang.ruby:6955 On 11.04.2014 15:24, Arup Rakshit wrote: > When you write > > a = b # error. As b is not defined as a method or local variable > > But if you try - > > a = a or b = b, MRI parse it without error. How the `a` or `b` on the > right side is allowed, where as I didn't define them earlier. There was recently a thread over at ruby-forum https://www.ruby-forum.com/topic/4487093 robert