On Mon, 27 Feb 2017 14:35:17 -0800, [email protected] 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)

Reply via email to