Issue #7493 has been updated by kachick (Kenichi Kamiya).


* ????????????????????????????????????緇???????緇???????????篏?????????????腆肴???????障????????
* 1.8.7??ф????????????????莨若?障???????醇?с??篏???????????鴻??ゃ??????茹e?堺?ャ?障????????

??障?????1.8???1.9+??с??next??画昭膊??????綏??違????????障?ф???????????????????????障???????с????????
腥冴???????????箴≦?ゃ?????荐?????劫????с????ゆ????????合?????紊у?????綣激??????障?????

緇≦上???糸勝???腓冴???????????c?????????????障????????
----------------------------------------
Bug #7493: ???????????羝<??????????翫???????????1荀?膣????帥??菴????Enumerator??絲??????next?????????膓???????????2綺???StopIteration箴?紊??????榊????????
https://bugs.ruby-lang.org/issues/7493#change-34326

Author: kachick (Kenichi Kamiya)
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: Ruby 1.8.7
ruby -v: ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]


???????????????????у?????????????翫?????????????????ゃ????c??1荀?膣????帥??菴??????<?純??????????????Enumerator???篏????????
2綺???next???StopIteration箴?紊????菴????????????с?????
????????潟?c??????????х∈茯?????????<?純?????????篁ヤ??????с?????

* Array#index
* Array#find_index
* Array#rindex
* Enumerable#detect
* Enumerable#find

??????????1.8.7???1.9???????罕????若?????綏?違???????????鴻?????????с???????????鐚?
???????????????Enumerator??絲??????to_a??????????????膣????????Array???菴????篋??????????
1.8.7???若??????????膣?莎井?糸?堺?ャ????鴻?????吟?с??<??????????????障????????

# to_a???綏??違???dbussink?????????ф????ャ??????????堺?ャ?障????????
# https://github.com/rubinius/rubinius/pull/2063#issuecomment-10881875

  array = [:a, :b, :c]
  index_enum = array.index
  index_enum.to_a #=> [:a, :b, :c]
  index_enum.next #=> :a
  index_enum.next #=> StopIteration: iteration reached at end


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