https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112012-11-19T00:11:22ZRuby Issue Tracking SystemRuby master - Bug #7382: Struct#each_pairのyieldと他のeach_pairのそれの相違https://redmine.ruby-lang.org/issues/7382?journal_id=330572012-11-19T00:11:22Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>おっしゃることはもっともなので、直してトラブルが起きないかどうか確認したいです。<br>
中田さん、お願いしていい?</p>
<p>Matz.</p> Ruby master - Bug #7382: Struct#each_pairのyieldと他のeach_pairのそれの相違https://redmine.ruby-lang.org/issues/7382?journal_id=330582012-11-19T00:11:33Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul> Ruby master - Bug #7382: Struct#each_pairのyieldと他のeach_pairのそれの相違https://redmine.ruby-lang.org/issues/7382?journal_id=330852012-11-19T16:31:11Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r37721.<br>
tadayoshi, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>struct.c: yield assoc in each_pair</p>
<ul>
<li>struct.c (rb_struct_each_pair): yield associated pairs so that<br>
an unsplat argument can get both, for consistency with Hash,<br>
OpenStruct, and etc. <a href="/issues/7382">[ruby-dev:46533]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Struct#each_pairのyieldと他のeach_pairのそれの相違 (Closed)" href="https://redmine.ruby-lang.org/issues/7382">#7382</a>]</li>
</ul>