Issue #4440 has been updated by ko1 (Koichi Sasada).

Description updated
Status changed from Assigned to Closed

duplicated (http://bugs.ruby-lang.org/issues/4443)
----------------------------------------
Bug #4440: odd evaluation order in a multiple assignment
https://bugs.ruby-lang.org/issues/4440#change-28034

Author: mame (Yusuke Endoh)
Status: Closed
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: 
Target version: 
ruby -v: -


=begin
???????????

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>
=end



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