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

Status changed from Assigned to Rejected

??篋?????????筝?????????????????с??吾?с????????障?????

Matz.

----------------------------------------
Bug #6195: String#[] ?????????? Range ???羝<???????翫?????????
https://bugs.ruby-lang.org/issues/6195#change-28057

Author: mrkn (Kenta Murata)
Status: Rejected
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-03-23 trunk 35121) [x86_64-darwin11.3.0]


篁ヤ???????????? String#[] ??絲???????膀???蚊???紮???ゃ?潟????????鴻?????絖???????激??篁ヤ?????ゃ?с?????????????? Range (beg > end) ???羝<???????翫????腥???絖???????菴??????障?????

  "1"[1..0] #=> ""
  "1"[1..-1] #=> ""
  "123"[2..1] #=> ""
  "123"[2..-2] #=> ""

筝???鴻??膀???蚊???紮???ゃ?潟????????鴻?????絖???????激????????紊с???????翫????? nil ???菴??????障?????

  "1"[2..0] #=> nil
  "1"[2..-1] #=> nil
  "123"[4..1] #=> nil
  "123"[4..-2] #=> nil

?????????????????????rb_range_beg_len ????茖???莎????????????障?????
???絖???????ゃ?潟????????鴻???????????帥?с?????篁?罕??????????????????筝?荐??????????翫????? nil ???菴??????鴻????????????????????????障?????



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