From: Jacky Cheung Date: 2009-07-22T20:55:35+09:00 Subject: [ruby-core:24501] Re: [Bug #1797] trace instruction not generated by compiler --000e0cd2421c3374b6046f4a09b5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/7/21 Mark Moseley > 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 --000e0cd2421c3374b6046f4a09b5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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: =A0 a =3D 5
3: =A0 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 e= xpected.


----------------------------------------
http://redmine.r= uby-lang.org







in the ruby=A0 can doesn't h= as line 3
your code can wirite like this:
def foo
=A0 a =3D 5
e= nd


that's ok!

--
JackyCheung
--000e0cd2421c3374b6046f4a09b5--