[MacRuby] #936: Kernel#caller reports the wrong line numbers
MacRuby
ruby-noreply at macosforge.org
Mon Oct 11 13:37:52 PDT 2010
#936: Kernel#caller reports the wrong line numbers
---------------------------------+------------------------------------------
Reporter: mred@… | Owner: lsansonetti@…
Type: defect | Status: reopened
Priority: minor | Milestone: MacRuby 0.8
Component: MacRuby | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Changes (by mred@…):
* status: closed => reopened
* resolution: fixed =>
Comment:
The Kernel#caller method now reports the line number after the calling
line if the calling line is followed by a method invocation.
{{{
$ cat x.rb
class A
def f
puts caller
end
def g
f # line 7
self.inspect
end
end
a = A.new
a.g
ehynes at Pomona:tmp$ macruby x.rb
/private/tmp/x.rb:8:in `g'
/private/tmp/x.rb:13:in `<main>'
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/936#comment:2>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list