Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6954
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2014-04-11 06:24 -0700 |
| Message-ID | <3d3ebc5f-5c80-459e-963e-a3ffbea1dcec@googlegroups.com> (permalink) |
| Subject | confusion with local variable assignment |
| From | Arup Rakshit <tuka.08@gmail.com> |
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