ruby-changes:15983
From: mame <ko1@a...>
Date: Thu, 20 May 2010 22:21:16 +0900 (JST)
Subject: [ruby-changes:15983] Ruby:r27928 (ruby_1_9_2): * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
mame 2010-05-20 22:21:00 +0900 (Thu, 20 May 2010) New Revision: 27928 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27928 Log: * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI <nov at yo.rim.or.jp> in [ruby-dev:41348]. Modified files: branches/ruby_1_9_2/ChangeLog branches/ruby_1_9_2/vm_eval.c Index: ruby_1_9_2/ChangeLog =================================================================== --- ruby_1_9_2/ChangeLog (revision 27927) +++ ruby_1_9_2/ChangeLog (revision 27928) @@ -1,3 +1,8 @@ +Thu May 20 22:19:37 2010 Yusuke Endoh <mame@t...> + + * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI + <nov at yo.rim.or.jp> in [ruby-dev:41348]. + Thu May 20 22:17:24 2010 Yusuke Endoh <mame@t...> * vm.c (vm_backtrace_each): now takes an init function to distinguish Index: ruby_1_9_2/vm_eval.c =================================================================== --- ruby_1_9_2/vm_eval.c (revision 27927) +++ ruby_1_9_2/vm_eval.c (revision 27928) @@ -1536,7 +1536,7 @@ /* * call-seq: - * caller(start=1) -> array + * caller(start=1) -> Array or nil * * Returns the current execution stack---an array containing strings in * the form ``<em>file:line</em>'' or ``<em>file:line: in @@ -1544,6 +1544,9 @@ * determines the number of initial stack entries to omit from the * result. * + * Returns +nil+ if _start_ is greater than or equal to the size of + * current execution stack. + * * def a(skip) * caller(skip) * end @@ -1557,6 +1560,7 @@ * c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11"] * c(2) #=> ["prog:8:in `c'", "prog:12"] * c(3) #=> ["prog:13"] + * c(4) #=> nil */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/