From: "NARUSE, Yui" Date: 2011-03-24T04:47:08+09:00 Subject: [ruby-core:35547] Re: NoMethodError#message may take very long to execute (2011/03/24 1:34), David Yip wrote: > Your report might get more attention in Ruby's issue tracker: > http://redmine.ruby-lang.org/ Yeah, you should post proposals to issue tracker. On Wed, Mar 23, 2011 at 10:17 AM, Adiel Mittmann wrote: > Of course I can write a #to_s for all my objects, but the point is that I didn't > call #to_s or #inspect, I called #message on an exception object, which then > takes a few minutes just to return a short string. You (or the library's author) should write suitable #inspect. #inspect is called when you use another methods like Kernel#p or irb. So similar problem happens with such objects when you use p or irb. Your abstract proposal "to always print out the simpler representation given by rb_any_to_s" is not correct way. -- NARUSE, Yui