https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17097754782012-02-11T06:56:28ZRuby Issue Tracking SystemRuby master - Bug #5966: ->{} doesn't work in BasicObjecthttps://redmine.ruby-lang.org/issues/5966?journal_id=237142012-02-11T06:56:28Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/2449">0001-Bug-5966-lambda-in-BasicObject.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2449/0001-Bug-5966-lambda-in-BasicObject.patch">0001-Bug-5966-lambda-in-BasicObject.patch</a> added</li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>ko1 (Koichi Sasada)</i></li></ul><p>I'm not sure why FCALL is dealt specially in op_send.<br>
It doesn't seem needed if self is put instead of nil.</p> Ruby master - Bug #5966: ->{} doesn't work in BasicObjecthttps://redmine.ruby-lang.org/issues/5966?journal_id=241562012-02-26T04:23:16Zko1 (Koichi Sasada)
<ul></ul><p>Hi,</p>
<p>(2012/02/11 6:56), Nobuyoshi Nakada wrote:</p>
<blockquote>
<p>File 0001-Bug-5966-lambda-in-BasicObject.patch added<br>
Status changed from Open to Assigned<br>
Assignee set to Koichi Sasada</p>
</blockquote>
<p>Thank you. Please commit it.</p>
<blockquote>
<p>I'm not sure why FCALL is dealt specially in op_send.<br>
It doesn't seem needed if self is put instead of nil.</p>
</blockquote>
<p>It is a historical reason. No reason now.</p>
<p>--<br>
// SASADA Koichi at atdot dot net</p> Ruby master - Bug #5966: ->{} doesn't work in BasicObjecthttps://redmine.ruby-lang.org/issues/5966?journal_id=241742012-02-26T11:26:51Znobu (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 r34819.<br>
Kazuki, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>compile.c (iseq_compile_each): call on special object instead of<br>
self. since stabby lambda is a syntax, so it should not be<br>
affected by the context. <a href="/issues/5966">[ruby-core:42349]</a>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: ->{} doesn't work in BasicObject (Closed)" href="https://redmine.ruby-lang.org/issues/5966">#5966</a>]</li>
<li>insns.def (send): no special deal for FCALL. self should be put<br>
on TOS instead.</li>
</ul>