1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
matz c186fdb90b * enumerator.c (enumerator_next_p): should check correctly even when
e.next has not been called before.

* enumerator.c (enumerator_next): raise StopIteration (name taken
  from Python) instead of IndexError.

* enum.c (enum_zip): catch StopIteration exception.

* enumerator.c (enumerator_with_index): return Enumerator if no
  block is given.

* test/ruby/test_iterator.rb (TestIterator::test_enumerator): add
  test for enumerators.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 07:07:03 +00:00
..
defines.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
intern.h * cont.c (rb_fiber_yield): change argument ordering. export. 2007-08-06 16:41:17 +00:00
io.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
missing.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
node.h * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb 2007-07-05 01:42:09 +00:00
oniguruma.h * include/ruby/oniguruma.h: upgrade to Oniguruma 5.9.0. fixes 2007-07-23 09:39:30 +00:00
re.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
regex.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
ruby.h * enumerator.c (enumerator_next_p): should check correctly even when 2007-08-08 07:07:03 +00:00
signal.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
st.h * include/ruby/st.h, st.c (st_init_table, st_init_table_with_size): 2007-07-05 01:06:49 +00:00
util.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
win32.h * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222] 2007-07-15 13:24:39 +00:00