On Mon, 31 Aug 2009, Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: [ruby-core:25201] Re: [Bug #2018] [irb] BasicObject.new doesn't have an inspect"
>    on Mon, 31 Aug 2009 02:49:19 +0900, "David A. Black" <dblack / rubypal.com> writes:
>
> |> Bug #2018: [irb] BasicObject.new doesn't have an inspect
> |> http://redmine.ruby-lang.org/issues/show/2018
> |
> |Why is that a bug?
>
> I think it's not the point.  BasicObject has no method (with a few
> exception) by its definition.  But irb should handle objects without
> inspect defined.

Ah, OK -- I didn't catch onto that.

Actually I really like doing:

   >> b = BasicObject.new

in irb when I'm teaching 1.9 -- very dramatic way to demonstrate the
basicness of BasicObject :-) But I can understand that it should
probably be handled more gracefully.


David

-- 
David A. Black / Ruby Power and Light, LLC / http://www.rubypal.com
Ruby/Rails training, mentoring, consulting, code-review
Latest book: The Well-Grounded Rubyist (http://www.manning.com/black2)

September Ruby training in NJ has been POSTPONED. Details to follow.