[ruby-cvs:70373] nobu:r63283 (trunk): range.c: each on endless range

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Apr 28 16:31:32 JST 2018


nobu	2018-04-28 16:31:32 +0900 (Sat, 28 Apr 2018)

  New Revision: 63283

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63283

  Log:
    range.c: each on endless range
    
    * range.c (range_each): endless range begins with string-like
      object should iterate from the converted result string, as well
      as `#each` on a string-end range or `#step` method on an endless
      range, i.e., `begin.succ` should not be called.

  Modified files:
    trunk/range.c
    trunk/test/ruby/test_range.rb


More information about the ruby-cvs mailing list