From: Run Paint Run Run Date: 2009-09-05T08:30:56+09:00 Subject: [ruby-core:25387] [Bug #2050] Abbreviated Assignment Operators No Longer Return rvalue Bug #2050: Abbreviated Assignment Operators No Longer Return rvalue http://redmine.ruby-lang.org/issues/show/2050 Author: Run Paint Run Run Status: Open, Priority: Normal ruby -v: ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux] $ cat /tmp/h.rb class H def [](k) k end def []=(k, v) [k, v] end end a = H.new a[123] = 2 b = (a[123] += 2) p b $ ruby -v /tmp/h.rb ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux] [123, 125] $ ruby8 -v /tmp/h.rb ruby 1.8.8dev (2009-09-04) [i686-linux] 125 http://redmine.ruby-lang.org/issues/show/1996 is presumably the same problem, but was reported against the Redmine project; opening a ticket here so it doesn't get overlooked. ---------------------------------------- http://redmine.ruby-lang.org