Caller at toplevel

e$B$$$^$$$G$9!#e(B

e$B$k$j$^$N%P%0Js9p$r=hM}$7$F$$$F5$$E$$$?$N$G$9$,!"%H%C%W%l%Y%k$Ge(B
caller
e$B$r8F$V$H!"e(B1.8e$B7O$G$Oe(B []
e$B$,JV$C$F$$$?$N$G$9$,!"e(B1.9e$B7O$G$Oe(B nil e$B$,JV$j$^$9!#e(B

http://redmine.ruby-lang.org/issues/show/3301

$ ruby1.8 -ve ‘p caller’
ruby 1.8.8dev (2010-05-15 revision 26358) [i686-linux]
[]
$ ruby1.9 -ve ‘p caller’
ruby 1.9.3dev (2010-05-16 trunk 27849) [i686-linux]
nil

NEWS
e$B$J$I$K$O=q$$$F$J$$$h$&$J$N$G$9$,!"$3$l$O0U?^E*$JJQ99$G$7$g$&$+!)e(B

e$B0U?^E*[email protected]$H$7$F!"e(Beval.c e$B$de(B vm_eval.c e$B$K$Oe(B

  • call-seq:
  • caller(start=1)    => array
    

e$B$H=q$$$F$"$k$N$G$9$,!"%H%C%W%l%Y%k$G$J$/$F$b0z?t$K$h$C$F$Oe(B nil
e$B$,JV$ke(B
e$B>l9g$,$"$k$N$G!"e(B

  • call-seq:
  • caller(start=1)    => Array or nil
    

e$B$HJQ$($k$N$O$I$&$G$7$g$&$+!)@bL@$d%5%s%W%k%3!<%I$NDI2C$K$$$$%"%$%G%"$,e(B
e$B$J$$$N$G$9$,!"$H$j$"$($:Js9p$7$^$9!#e(B

e$B$A$J$_$K!"$A$g$C$H8E$$$G$9$,!"e(BJRuby e$B$G$O!"e(B[]
e$B$,JV$j$^$9!#e(B

$ jruby --1.9 -ve ‘p caller’
jruby 1.1.6 (ruby 1.9.1 patchlevel 114) (2009-07-06 rev 6586)
[i386-java]
[]