Issue #7625 has been updated by shugo (Shugo Maeda).


#7768???????????????????????????議????????????(???????????????)???????????????????????????

----------------------------------------
Bug #7625: Array????????????????????????compact???Array???????
https://bugs.ruby-lang.org/issues/7625#change-36042

Author: mogya / mogya.com (Daisuke Furukawa)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]


?𳡣:
???ruby 1.9.3????Array?????????????????compact???????????????????????????
Array?????????????????帰??????

??????????????????
  ?????????????????????????帰??????

????????
========
$ ruby -v
ruby 1.9.2p320 (2012-04-20 revision 35421) [i686-linux]
$ irb
irb(main):001:0> class Array2 < Array; end
irb(main):002:0> p Array2.new().compact.class.name
"Array2"
========
$ ruby -v
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]
$ irb
irb(main):001:0> class Array2 < Array; end
irb(main):002:0> p Array2.new().compact.class.name
"Array"
========

???調??????????

???ruby 1.9.3p327??????p362 ????????????????????
???compact??代????????uniq???使???????????????????
???1.9.3???????String??????使???
??? s = String2.new().concat("") ??????String2?????????????????帰?????????

see also: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/49098



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