From: gabriele renzi Date: 2004-12-12T20:27:21+09:00 Subject: Re: How can I get the return value from a Ruby function, but inside the set_trace_func callback? J. D. ha scritto: > > This is a complete shot-in-the-dark from a noob but have you tried > adding this as the last line of the function? > > return result > > I heard somewhere it negatively impacts performance to add an explicit > return statement in functions. Maybe the cause of this performace hit > will be the same thing that helps when tracing. this was true, but it is'nt anymore, nobu "the patch bot" nokada proposed a patch and that was accepted: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/91270