Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6954
| X-Received | by 10.67.30.197 with SMTP id kg5mr11300580pad.36.1397222679168; Fri, 11 Apr 2014 06:24:39 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.178.196 with SMTP id da4mr106999igc.17.1397222679079; Fri, 11 Apr 2014 06:24:39 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!ur14no6276453igb.0!news-out.google.com!gi6ni382igc.0!nntp.google.com!l13no5585066iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.ruby |
| Date | Fri, 11 Apr 2014 06:24:38 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=223.232.204.9; posting-account=Ut8QRgkAAADwW5Zo_w-Ncx7hJ1pmaMn8 |
| NNTP-Posting-Host | 223.232.204.9 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <3d3ebc5f-5c80-459e-963e-a3ffbea1dcec@googlegroups.com> (permalink) |
| Subject | confusion with local variable assignment |
| From | Arup Rakshit <tuka.08@gmail.com> |
| Injection-Date | Fri, 11 Apr 2014 13:24:39 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.ruby:6954 |
Show key headers only | View raw
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. Thanks
Back to comp.lang.ruby | Previous | Next — 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