Re: [perl #130887] [BUG] .perl omits backtrace of exception
Zoffix Znet via RT wrote: >Only public attributes of an object get dumped in .perl's output, >and backtrace isn't one: That's a fine default, but a problem in this case. The .backtrace method is public, so .perl.EVAL ought to be round-tripping the data that it exposes, however that's stored. -zefram
[perl #130887] [BUG] .perl omits backtrace of exception
On Mon, 27 Feb 2017 14:35:17 -0800, zef...@fysh.org wrote: > > try { my Int $a; $a = "foo" }; say ?$!.backtrace; say > > ?$!.perl.EVAL.backtrace > True > False > > .perl.EVAL is failing to round-trip the exception object, as > demonstrated > by the differing truthiness of the value returned by .backtrace. > > -zefram Only public attributes of an object get dumped in .perl's output, and backtrace isn't one: $ perl6 -e 'class Foo { has $!foo = 42; has $.bar = 72 }.new.perl.say' Foo.new(bar => 72)
[perl #130887] [BUG] .perl omits backtrace of exception
# New Ticket Created by Zefram # Please include the string: [perl #130887] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130887 > > try { my Int $a; $a = "foo" }; say ?$!.backtrace; say ?$!.perl.EVAL.backtrace True False .perl.EVAL is failing to round-trip the exception object, as demonstrated by the differing truthiness of the value returned by .backtrace. -zefram