2009/7/21 Mark Moseley <redmine / ruby-lang.org>

> Bug #1797: trace instruction not generated by compiler
> http://redmine.ruby-lang.org/issues/show/1797
>
> Author: Mark Moseley
> Status: Open, Priority: Normal
> ruby -v: 1.9.1
>
> With the following code:
>
> 1: def foo
> 2:   a = 5
> 3:   return a
> 4: end
>
> No trace instruction is generated for line 3.
>
> If line 3 is just "a", without the return, then it functions as expected.
>
>
> ----------------------------------------
> http://redmine.ruby-lang.org
>
>





in the ruby  can doesn't has line 3
your code can wirite like this:
def foo
  a = 5
end


that's ok!

-- 
JackyCheung