https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112009-08-31T02:49:53ZRuby Issue Tracking SystemRuby master - Feature #2018: [irb] BasicObject.new doesn't have an inspecthttps://redmine.ruby-lang.org/issues/2018?journal_id=54752009-08-31T02:49:53Zdblack (David Black)dblack@rubypal.com
<ul></ul><p>=begin<br>
Hi --</p>
<p>On Mon, 31 Aug 2009, Daniel Bovensiepen wrote:</p>
<blockquote>
<p>Bug <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: [irb] BasicObject.new doesn't have an inspect (Closed)" href="https://redmine.ruby-lang.org/issues/2018">#2018</a>: [irb] BasicObject.new doesn't have an inspect<br>
<a href="http://redmine.ruby-lang.org/issues/show/2018" class="external">http://redmine.ruby-lang.org/issues/show/2018</a></p>
</blockquote>
<p>Why is that a bug?</p>
<p>David</p>
<p>--<br>
David A. Black / Ruby Power and Light, LLC / <a href="http://www.rubypal.com" class="external">http://www.rubypal.com</a><br>
Ruby/Rails training, mentoring, consulting, code-review<br>
Latest book: The Well-Grounded Rubyist (<a href="http://www.manning.com/black2" class="external">http://www.manning.com/black2</a>)</p>
<p>September Ruby training in NJ has been POSTPONED. Details to follow.</p>
<p>=end</p> Ruby master - Feature #2018: [irb] BasicObject.new doesn't have an inspecthttps://redmine.ruby-lang.org/issues/2018?journal_id=54762009-08-31T02:51:56Zhongli (Hongli Lai)hongli@phusion.nl
<ul></ul><p>=begin<br>
I thought the whole point of BasicObject is that it doesn't have any methods.<br>
=end</p> Ruby master - Feature #2018: [irb] BasicObject.new doesn't have an inspecthttps://redmine.ruby-lang.org/issues/2018?journal_id=54792009-08-31T07:36:04Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="https://blade.ruby-lang.org/ruby-core/25201">[ruby-core:25201]</a> Re: [Bug <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: [irb] BasicObject.new doesn't have an inspect (Closed)" href="https://redmine.ruby-lang.org/issues/2018">#2018</a>] [irb] BasicObject.new doesn't have an inspect"<br>
on Mon, 31 Aug 2009 02:49:19 +0900, "David A. Black" <a href="mailto:dblack@rubypal.com" class="email">dblack@rubypal.com</a> writes:</p>
<p>|> Bug <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: [irb] BasicObject.new doesn't have an inspect (Closed)" href="https://redmine.ruby-lang.org/issues/2018">#2018</a>: [irb] BasicObject.new doesn't have an inspect<br>
|> <a href="http://redmine.ruby-lang.org/issues/show/2018" class="external">http://redmine.ruby-lang.org/issues/show/2018</a><br>
|<br>
|Why is that a bug?</p>
<p>I think it's not the point. BasicObject has no method (with a few<br>
exception) by its definition. But irb should handle objects without<br>
inspect defined.</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Ruby master - Feature #2018: [irb] BasicObject.new doesn't have an inspecthttps://redmine.ruby-lang.org/issues/2018?journal_id=54802009-08-31T07:40:20Zdblack (David Black)dblack@rubypal.com
<ul></ul><p>=begin<br>
On Mon, 31 Aug 2009, Yukihiro Matsumoto wrote:</p>
<blockquote>
<p>Hi,</p>
<p>In message "Re: <a href="https://blade.ruby-lang.org/ruby-core/25201">[ruby-core:25201]</a> Re: [Bug <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: [irb] BasicObject.new doesn't have an inspect (Closed)" href="https://redmine.ruby-lang.org/issues/2018">#2018</a>] [irb] BasicObject.new doesn't have an inspect"<br>
on Mon, 31 Aug 2009 02:49:19 +0900, "David A. Black" <a href="mailto:dblack@rubypal.com" class="email">dblack@rubypal.com</a> writes:</p>
<p>|> Bug <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: [irb] BasicObject.new doesn't have an inspect (Closed)" href="https://redmine.ruby-lang.org/issues/2018">#2018</a>: [irb] BasicObject.new doesn't have an inspect<br>
|> <a href="http://redmine.ruby-lang.org/issues/show/2018" class="external">http://redmine.ruby-lang.org/issues/show/2018</a><br>
|<br>
|Why is that a bug?</p>
<p>I think it's not the point. BasicObject has no method (with a few<br>
exception) by its definition. But irb should handle objects without<br>
inspect defined.</p>
</blockquote>
<p>Ah, OK -- I didn't catch onto that.</p>
<p>Actually I really like doing:</p>
<pre><code>>> b = BasicObject.new
</code></pre>
<p>in irb when I'm teaching 1.9 -- very dramatic way to demonstrate the<br>
basicness of BasicObject :-) But I can understand that it should<br>
probably be handled more gracefully.</p>
<p>David</p>
<p>--<br>
David A. Black / Ruby Power and Light, LLC / <a href="http://www.rubypal.com" class="external">http://www.rubypal.com</a><br>
Ruby/Rails training, mentoring, consulting, code-review<br>
Latest book: The Well-Grounded Rubyist (<a href="http://www.manning.com/black2" class="external">http://www.manning.com/black2</a>)</p>
<p>September Ruby training in NJ has been POSTPONED. Details to follow.</p>
<p>=end</p> Ruby master - Feature #2018: [irb] BasicObject.new doesn't have an inspecthttps://redmine.ruby-lang.org/issues/2018?journal_id=56582009-09-07T11:35:08Zyugui (Yuki Sonoda)yugui@yugui.jp
<ul><li><strong>Assignee</strong> set to <i>keiju (Keiju Ishitsuka)</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>=begin<br>
It is not a bug. But I think enhancement for irb is possible.<br>
What kind of handling do you want?<br>
=end</p> Ruby master - Feature #2018: [irb] BasicObject.new doesn't have an inspecthttps://redmine.ruby-lang.org/issues/2018?journal_id=56602009-09-07T12:37:05Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
Applied in changeset r24779.<br>
=end</p>