From: Yusuke ENDOH Date: 2007-12-12T23:56:20+09:00 Subject: Re: Return value of Kernel#p Hi, 2007/12/12, murphy : > also, shouldn't display, puts, putc and print share this behavior? > > when I understand the idea correctly, it was changed so you can easily > debug return values, as in: > > def foo > calculate_something > calculate_result # prepend with p to return and output the result > end > > so maybe it doesn't make sense to change the others...except y and j :) Exactly. I suggested the behavior for the purpose at [ruby-dev:29736]. This is just for easy debugging, so I agree that the other printing methods such as puts and print need not be changed. -- Yusuke ENDOH