diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-23 09:01:19 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-23 09:01:19 +0000 |
commit | 739be8c2940544fc192912f6096aa90d70e01578 (patch) | |
tree | 79f9b5399877a5b591dad091ebce3a918f0e9d6a /eval_error.c | |
parent | 92ebb5944b13faa02d7f06e48e7bab012a10331b (diff) | |
download | ruby-739be8c2940544fc192912f6096aa90d70e01578.tar.gz ruby-739be8c2940544fc192912f6096aa90d70e01578.tar.xz ruby-739be8c2940544fc192912f6096aa90d70e01578.zip |
* array.c (rb_ary_slice_bang): Be consistent with Array#slice()
and String#slice!(). Just return nil when a negative length or
out of boundary index is given instead of raising an exception
via internal functions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
0 files changed, 0 insertions, 0 deletions