diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 09:58:01 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 09:58:01 +0000 |
commit | f4c487173cd0c09993a51f684d8ae7e031b3f302 (patch) | |
tree | 73dfc17a8e2401dfece8c763b9dc9a401ebe0287 /ChangeLog | |
parent | 53d6e605b0d4d61405d4cce36699fca904573b2c (diff) |
Kernel#loop returns the result value of a finished iterator
* vm_eval.c (rb_f_loop): When a loop is stopped by a StopIteration
exception, return what the enumerator has returned instead of
nil. [ruby-core:71133] [Feature #11498]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Thu Oct 22 18:52:53 2015 Akinori MUSHA <knu@iDaemons.org> + + * vm_eval.c (rb_f_loop): When a loop is stopped by a StopIteration + exception, return what the enumerator has returned instead of + nil. [ruby-core:71133] [Feature #11498] + Thu Oct 22 18:25:10 2015 Shugo Maeda <shugo@ruby-lang.org> * lib/net/imap (idle): add a new argument timeout for keep-alive. |