[ruby-cvs:73579] mrkn:r66478 (trunk): range.c: reject ArithmeticSequence in rb_range_values

mrkn at ruby-lang.org mrkn at ruby-lang.org
Fri Dec 21 22:05:16 JST 2018


mrkn	2018-12-21 22:05:16 +0900 (Fri, 21 Dec 2018)

  New Revision: 66478

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

  Log:
    range.c: reject ArithmeticSequence in rb_range_values
    
    Reject ArithmeticSequence in rb_range_values so that methods like
    Array#[] raises TypeError for ArithmeticSequence as an index.

  Modified files:
    trunk/enumerator.c
    trunk/internal.h
    trunk/range.c
    trunk/test/ruby/test_array.rb


More information about the ruby-cvs mailing list