Issue #4443 has been reported by Yusuke Endoh.

----------------------------------------
Bug #4443: odd evaluation order in a multiple assignment
http://redmine.ruby-lang.org/issues/4443

Author: Yusuke Endoh
Status: Open
Priority: Normal
Assignee: Yukihiro Matsumoto
Category: 
Target version: 2.0
ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]


???????????core ?????????????????????????????????????

Ruby ??左??????????価????????信?????????????????????????代??????????????????????

  def foo
    p :foo
    []
  end
  def bar
    p :bar
  end

  x, foo[0] = bar, 0

bar ?????? foo ???左???????????:foo ???:bar ????????????????????????????????????????????????????? :bar ???:foo ????????????

???????????????????????????????????????

  obj, obj.foo = obj.foo, obj

???? swap ?????????????????????????????????????????????????????????????????????????????????転????????????????????????????????????????????????????????????????????????? splay tree ???????????????????????????????????????:

  t.left, t.left.right, t = t.left.right, t, t.left

1.9 系????修正?????????????????????????????2.0 ??????????????????????????????

IRC ??話????????????????????????????????????????????????????????????

  foo[0] = bar

??????????? :foo ???:bar ?????????????

-- 
Yusuke Endoh <mame / tsg.ne.jp>


-- 
http://redmine.ruby-lang.org