[前][次][番号順一覧][スレッド一覧]

ruby-reference-manual:3256

From: "pypypy567 (py _)" <redmine@r...>
Date: Mon, 3 Sep 2012 18:26:12 +0900
Subject: [ruby-reference-manual:3256] [るりまプロジェクト - Bug #6970][Open] 1.9系での Array#delete の返り値


Issue #6970 has been reported by pypypy567 (py _).

----------------------------------------
Bug #6970: 1.9系での Array#delete の返り値

https://bugs.ruby-lang.org/issues/6970

Author: pypypy567 (py _)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
reporter: 
ruby_version: 


$ ruby -ve "o = ''; def o.==(*); true; end; p [1, 2].delete(o)"
ruby 1.8.7 (2012-06-29 patchlevel 370) [i386-mingw32]
""
ruby 1.9.1p430 (2010-08-16 revision 28998) [i386-mingw32]
2

1.9系から val 自身ではなく最後に見つかった要素を返すようです。



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

--
ML: ruby-reference-manual@m...
Info: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]