From: Makoto Kuwata Date: 2010-11-06T14:20:53+09:00 Subject: [ruby-dev:42544] Re: [Ruby 1.9-Feature#3917] [proposal] called_from() which is much faster than caller() Hi Run Run, thank you for your comment about Kernel#caller. 2010/10/29 Run Paint Run Run : > I can't follow this discussion, but I'll note proposal #1906 that > also aims to provide an alternative to `#caller`. (Oddly, I, too, > hacked on vm_backtrace_each(), and related functions, to try to > implement the aforementioned). I'd prefer a Hash/Struct to be > returned, rather than an Array, and favour `#backtrace` or `#caller` > taking a count argument rather than defining a new top-level method > for such a narrow use. Ko1 has the same idea as what you proposed on #1906. He want to change return value from "filename:linenum: in `name'" to structured data type which is very similar to what you proposed. And I already proposed to add new argument to Kernel#caller() in order to specify backtrace depth, instead of adding new top-level function. Please check out 'Another Solutions' section on this ticket. Ko1, could you read #1906 if you change return value of caller()? -- regards, makoto kuwata