https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782011-10-31T10:27:41ZRuby Issue Tracking SystemRuby master - Bug #5519: Enumerator#next skips c-return hookshttps://bugs.ruby-lang.org/issues/5519?journal_id=216752011-10-31T10:27:41Zkernigh (George Koehler)xkernigh@netscape.net
<ul></ul><p>=begin<br>
This trace seems correct to me. There is no c-return because Array#each and Enumerator#each are not returning. To see the c-return, you call ((<em>b.next</em>)) 4 more times. Array#each and Enumerator#each both c-return soon before Enumerator#next raises StopIteration.</p>
<p>I am not sure how this works, but I guess that Enumerator#each runs on a different Fiber with a separate call stack.<br>
=end</p> Ruby master - Bug #5519: Enumerator#next skips c-return hookshttps://bugs.ruby-lang.org/issues/5519?journal_id=244412012-03-11T16:34:40Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> Ruby master - Bug #5519: Enumerator#next skips c-return hookshttps://bugs.ruby-lang.org/issues/5519?journal_id=321092012-10-31T22:03:08Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Rejected</i></li></ul><p>kernigh is right; this is a spec. Closing.</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a></p>