--000e0cd2421c3374b6046f4a09b5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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  
> 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  
end


that's ok!

-- 
JackyCheung

--000e0cd2421c3374b6046f4a09b5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class="gmail_quote">2009/7/21 Mark Moseley <span dir="ltr">&lt;redmine / ruby-lang.org&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bug #1797: trace instruction not generated by compiler<br>
<a href="http://redmine.ruby-lang.org/issues/show/1797" target="_blank">http://redmine.ruby-lang.org/issues/show/1797</a><br>
<br>
Author: Mark Moseley<br>
Status: Open, Priority: Normal<br>
ruby -v: 1.9.1<br>
<br>
With the following code:<br>
<br>
1: def foo<br>
2: a = 5<br>
3: return a<br>
4: end<br>
<br>
No trace instruction is generated for line 3.<br>
<br>
If line 3 is just &quot;a&quot;, without the return, then it functions as expected.<br>
<br>
<br>
----------------------------------------<br>
<a href="http://redmine.ruby-lang.org" target="_blank">http://redmine.ruby-lang.org</a><br>
<br>
</blockquote></div><br><br><br><br><br><br>in the rubycan doesn&#39;t has line 3<br>your code can wirite like this:<br>def foo<br>a = 5<br>end<br><br><br>that&#39;s ok!<br clear="all"><br>-- <br>JackyCheung<br>

--000e0cd2421c3374b6046f4a09b5--