[MacRuby] #422: Kernel#caller compatibilty
#422: Kernel#caller compatibilty -------------------------------------+-------------------------------------- Reporter: mattaimonetti@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- In a file: {{{ class Foo def self.bar puts caller(1) end end Foo.bar }}} macruby: {{{ core:in `caller:' simple_caller.rb:3:in `bar' simple_caller.rb:7:in `<main>' }}} ruby1.9: {{{ simple_caller.rb:7:in `<main>' }}} A tiny bit more advanced example: {{{ class Foo def self.bar baz do puts caller(1) end end def self.baz(&block) block.call end end Foo.bar }}} macruby: {{{ core:in `caller:' caller_proc.rb:9:in `baz' caller_proc.rb:3:in `bar' caller_proc.rb:13:in `<main>' }}} ruby1.9: {{{ caller_proc.rb:9:in `call' caller_proc.rb:9:in `baz' caller_proc.rb:3:in `bar' caller_proc.rb:13:in `<main> }}} Files attached. -- Ticket URL: <http://www.macruby.org/trac/ticket/422> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby