https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112012-11-07T08:09:30ZRuby Issue Tracking SystemRuby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=325192012-11-07T08:09:30Zayumin (Ayumu AIZAWA)ayumu.aizawa@gmail.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/32519/diff?detail_id=22970">diff</a>)</li></ul> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=325202012-11-07T08:12:19Zayumin (Ayumu AIZAWA)ayumu.aizawa@gmail.com
<ul></ul><p>r37498 makes this issue.</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=325342012-11-07T12:32:34Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>marcandre (Marc-Andre Lafortune)</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>Marc-Andre, please fix it by preview2.</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a></p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=325372012-11-07T13:02:49Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Sorry, completely forgot to check rubyspec. Fixed.</p>
<p>I'll take this occasion to open a new feature request sitting on my todo list for over a year...</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=325742012-11-08T00:52:25Zayumin (Ayumu AIZAWA)ayumu.aizawa@gmail.com
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Open</i></li></ul><p>Hi Mark,</p>
<p>You fixed rubyspec... just skipped. I think this is not fair.<br>
Same example still reproduce same problem.<br>
As mame said it should be fixed until preview2.</p>
<p>I added more example in test/ruby/test_enumerator.rb to shed light on this issue by r37541.</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=325832012-11-08T03:48:30Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Sorry, I am missing your point. There was no meaning to the form <code>Enumerator.new( obj ) { block }</code>; the block was completely ignored and there should have been a warning (like there is for Array.new, #index, #count, ...)</p>
<p>What is the meaning of <code>{|y| i = 0; loop { y << (i+=1) } }</code> in your test? Do you think it does anything?</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=326062012-11-08T11:40:48Zayumin (Ayumu AIZAWA)ayumu.aizawa@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Assigned</i></li></ul><p>Hi Mark,</p>
<p>The given block has no mean.<br>
It is just same as above example. I wanted to show that this issue is not closed yet by testcode.</p>
<p>I agreed what you said.</p>
<p>When Enumerator.new called with args and blok, the block is ignored and it should have been a warning. Thus, I will fix example. (after my daywork)</p>
<p>Thanks.</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=326482012-11-09T02:03:25Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Assignee</strong> changed from <i>marcandre (Marc-Andre Lafortune)</i> to <i>ayumin (Ayumu AIZAWA)</i></li></ul> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=326612012-11-09T11:19:25Zluislavena (Luis Lavena)luislavena@gmail.com
<ul><li><strong>Category</strong> set to <i>test</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>7</i></li></ul><p>Hello,</p>
<p>I'm bumping the priority on this since it broke the build:</p>
<p><a href="http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T003800Z.log.html.gz#test-all" class="external">http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T003800Z.log.html.gz#test-all</a></p>
<p><a href="http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/271/console" class="external">http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/271/console</a></p>
<p>Thank you</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=327242012-11-10T07:11:29Zluislavena (Luis Lavena)luislavena@gmail.com
<ul></ul><p>=begin<br>
ping?</p>
<p>20 hours have past and failure is still there:</p>
<p><a href="http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T163100Z.log.html.gz#test-all" class="external">http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20121109T163100Z.log.html.gz#test-all</a></p>
<p><a href="http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/275/console" class="external">http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/275/console</a></p>
<ol>
<li>Error:<br>
test_initialize(TestEnumerator):<br>
TypeError: can't convert Array into Integer<br>
C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/ruby/test_enumerator.rb:72:in <code>initialize' C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/ruby/test_enumerator.rb:72:in </code>new'<br>
C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/ruby/test_enumerator.rb:72:in `test_initialize'</li>
</ol>
<p>=end</p> Ruby master - Bug #7298: Behavior of Enumerator.new different between 1.9.3 and 2.0.0https://redmine.ruby-lang.org/issues/7298?journal_id=327312012-11-10T13:15:55Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>Priority</strong> changed from <i>7</i> to <i>Normal</i></li></ul><p>I reverted Ayumin's commit, although I had understood that he would do it himself...?</p>