I really wish you'd stop abusing this list and learn how to learn on your own. I don't follow or participate in this list half as much as I used to and you're mostly to blame. The people who insist on playing your games are also to blame, but not as much as you. The signal:noise on this list is degraded because of you.
···
On Jul 27, 2013, at 13:43 , Love U Ruby <lists@ruby-forum.com> wrote:
To be fair: I don't think this aspect has been answered in that thread,
and it really is not so easy to spot in irb output
(since Thread::Backtrace::Location#inspect produces the same output
as the strings returned when using Kernel#caller).
I really wish you'd stop abusing this list and learn how to learn on your own.
[snip]
I think it has improved a lot in the past months.
Best regards,
Marcus
···
Am 27.07.2013 23:13, schrieb Ryan Davis:
On Jul 27, 2013, at 13:43 , Love U Ruby <lists@ruby-forum.com> wrote:
In both case I am getting the same output.I am trying to understand the
differences,but in my code I am not able to catch it. I am doing
probably something wrong.. Could you point me out there ?
"[...] it really is not so easy to spot in irb output
(since Thread::Backtrace::Location#inspect produces the same output
as the strings returned when using Kernel#caller)."
Regards,
Marcus
···
Am 10.10.2013 12:13, schrieb Love U Ruby:
unknown wrote in post #1116913:
Am 27.07.2013 22:43, schrieb Love U Ruby:
Hi,
caller: "Returns the current execution stack—an array containing strings
in the form file:line or file:line: in `method'."
caller-locations: "Returns the current execution stack—an array
containing backtrace location objects."
In both case I am getting the same output.I am trying to understand the
differences,but in my code I am not able to catch it. I am doing
probably something wrong.. Could you point me out there ?
"[...] it really is not so easy to spot in irb output
(since Thread::Backtrace::Location#inspect produces the same output
as the strings returned when using Kernel#caller)."
Regards,
Marcus
Hi Marcus,
Thanks for your time. Ok.. so I can then use any of them when I need
it..I mean - Is there any difference in the area of application where I
should use #caller but not #caller_locations,and vice-versa ?