On Fri Jul 24 11:26:41 2015, alex.jakime...@gmail.com wrote:
> Code:
> ...
> 
> Result:
> Unhandled exception: Stub code executed
>    at <unknown>:1
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/CORE.setting.moarvm:throw:4294967295)
>  from src/gen/m-CORE.setting:17505
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/CORE.setting.moarvm:throw:39)
>  from src/gen/m-CORE.setting:17531
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/CORE.setting.moarvm:sink:33)
>  from src/gen/m-main.nqp:41
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/perl6.moarvm:MAIN:40)
>  from src/gen/m-main.nqp:35
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/perl6.moarvm:<mainline>:197)
>  from <unknown>:1
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/perl6.moarvm:<main>:8)
>  from <unknown>:1
> (/home/alex/git/rakudobrew/moar-
> nom/install/share/perl6/runtime/perl6.moarvm:<entry>:9)
> 
> 
> It seems like I should not see that backtrace. There is no such
> problem
> when using !!! and ???.
> 
> But it goes even further:
> $ perl6 -e '...; 1'
> Stub code executed
>   in block <unit> at -e:1
> 
> Actually thrown at:
>   in block <unit> at -e:1
> 
> 
> As you can see, no stacktrace when running it with -e. However, the
> same
> code (...; 1) running from file gives a backtrace.
> 
> jnthn and moritz discussed that problem a little bit, check out IRC
> log:
> http://irclog.perlgeek.de/perl6/2015-07-24#i_10949235

This no longer behaves differently in a file version on the command line, both 
giving:

Useless use of constant integer 1 in sink context (line 1)
Stub code executed
  in any  at 
/Users/williamcoleda/.rakudobrew/moar-2016.07.1/install/share/perl6/runtime/CORE.setting.moarvm
 line 1
  in block <unit> at -e line 1

Marking test needed.

-- 
Will "Coke" Coleda

Reply via email to