From: "ko1 (Koichi Sasada)" Date: 2012-07-14T14:56:11+09:00 Subject: [ruby-core:46413] [ruby-trunk - Bug #4440][Closed] odd evaluation order in a multiple assignment 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 =end -- http://bugs.ruby-lang.org/