>>>>> In [ruby-dev : No.22665] 
>>>>>	"NAKAMURA, Hiroshi" <nakahiro / sarion.co.jp> wrote:
> > --- parse.y 22 Jan 2004 07:21:08 -0000 1.312
> > +++ parse.y 22 Jan 2004 07:38:25 -0000
> > @@ -386,3 +386,3 @@ stmts : none
> >       {
> > - $$ = block_append($1, $3);
> > + $$ = block_append($1, newline_node($3));
> >       }

これ(↑はruby_1_8にも必要だったりするでしょうか?

> 期待通りになりました。ありがとうございました。
>
> 0$ cat foo.rb
> set_trace_func proc { |*a| p a } # 1
> def a                            # 2
>   1                              # 3
>   if true                        # 4
>     2 + 3                        # 5
>   end                            # 6
>   4 + 5                          # 7
> end                              # 8
> a                                # 9
> 0$ ruby -v foo.rb
> ruby 1.9.0 (2004-01-22) [i686-linux]
> foo.rb:3: warning: unused literal ignored
> ["line", "foo.rb", 2, nil, #<Binding:0xbf5acdf4>, false]
> ["c-call", "foo.rb", 2, :method_added, #<Binding:0xbf5accb4>, Module]
> ["c-return", "foo.rb", 2, :method_added, #<Binding:0xbf5acc78>, Module]
> ["line", "foo.rb", 9, nil, #<Binding:0xbf5acb74>, false]
> ["call", "foo.rb", 2, :a, #<Binding:0xbf5ac9bc>, Object]
> ["line", "foo.rb", 4, :a, #<Binding:0xbf5ac980>, Object]
> ["line", "foo.rb", 4, :a, #<Binding:0xbf5ac87c>, Object]
> ["line", "foo.rb", 5, :a, #<Binding:0xbf5ac78c>, Object]
> ["c-call", "foo.rb", 5, :+, #<Binding:0xbf5ac69c>, Fixnum]
> ["c-return", "foo.rb", 5, :+, #<Binding:0xbf5ac5ac>, Fixnum]
> ["line", "foo.rb", 7, :a, #<Binding:0xbf5ac4a8>, Object]
> ["c-call", "foo.rb", 7, :+, #<Binding:0xbf5ac3b8>, Fixnum]
> ["c-return", "foo.rb", 7, :+, #<Binding:0xbf5ac2c8>, Fixnum]
> ["return", "foo.rb", 7, :a, #<Binding:0xbf5ac1d8>, Object]

ruby_1_8の最新では(↑)と同じ結果になりませんでした。

-- 
やまだあきら / akira yamada <URL:http://arika.org>
Vine Caves, Ltd. <URL:http://vinecaves.com>
(akira / arika.org, akira / debian.org or akira / vinecaves.com)