Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6955
| 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 <shortcutter@googlemail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: confusion with local variable assignment |
| Date | Fri, 11 Apr 2014 19:41:00 +0200 |
| Lines | 14 |
| Message-ID | <bqqnpdFj65kU1@mid.individual.net> (permalink) |
| 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 |
Show key headers only | View raw
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
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar
confusion with local variable assignment Arup Rakshit <tuka.08@gmail.com> - 2014-04-11 06:24 -0700
Re: confusion with local variable assignment Robert Klemme <shortcutter@googlemail.com> - 2014-04-11 19:41 +0200
Re: confusion with local variable assignment Arup Rakshit <tuka.08@gmail.com> - 2014-04-11 10:51 -0700
Re: confusion with local variable assignment Robert Klemme <shortcutter@googlemail.com> - 2014-04-12 10:38 +0200
csiph-web