Issue #4443 has been updated by matz (Yukihiro Matsumoto).


C???????????????????代????価????????????????????????????????????????(????? a ??? ? ??表???????????)????????????????????
????????? foo[0] = bar ??? :bar, :foo?????????????????????????????????????????

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

???????調?????? mruby ??? foo[0] = bar ??? :bar, :foo????????????????

Matz.

----------------------------------------
Bug #4443: odd evaluation order in a multiple assignment
https://bugs.ruby-lang.org/issues/4443#change-25794

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


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



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