|
Assignments: msg#02282ruby-talk
Hello folks, I have a question about Ruby 1.8.7. After doing: a = b = 1 a += 1 a returns 2 and b returns 1. But if I try: a = b = [] a << 1 both a and b returns [1]. Why? Regards -- Posted via http://www.ruby-forum.com/.
|
|
||||||||||||||||||||||||||
| News | Mail Home | sitemap | FAQ | advertise |