From: Denis de Bernardy Date: 2011-07-12T17:40:06+09:00 Subject: [ruby-core:38018] [Ruby 1.9 - Feature #5016] Kernel#caller with negative limit should limit result to N initial frames Issue #5016 has been updated by Denis de Bernardy. Dup of #1906 and #3917. ---------------------------------------- Feature #5016: Kernel#caller with negative limit should limit result to N initial frames http://redmine.ruby-lang.org/issues/5016 Author: Nikolai Weibull Status: Open Priority: Normal Assignee: Category: core Target version: 1.9.x Calling Kernel#caller with a negative limit should limit result to N initial frames. When using Kernel#caller you often only want the first element of the result to get the information of the immediate caller. Generating the whole backtrace in this case is wasteful and time-consuming. Allowing Kernel#caller to take a negative limit to only return the first -N initial stack frames would allow for this. -- http://redmine.ruby-lang.org