On Fri Jun 25 08:08:54 2010, bbkr wrote:
> [17:02] <bbkr> rakudo: try { die "foo" }; try { die; CATCH { say $!} }
> [17:02] <p6eval> rakudo f34e78: OUTPUT«Died␤␤»
> 
> However I'm not sure if your test is spec-compatible - die without
> params should passthrough previously set $! ?

This and the original posting all work now:

10:52 < [Coke]> rakudo: die
10:52 <+p6eval> rakudo 25af2d: OUTPUT«␤  in block <anon> at /tmp/goE0GS1Zpn:1␤  
                in <anon> at /tmp/goE0GS1Zpn:1␤»
10:52 < [Coke]> rakudo: fail
10:52 <+p6eval> rakudo 25af2d:  ( no output )
10:52 < [Coke]> rakudo: exit
10:52 <+p6eval> rakudo 25af2d:  ( no output )
10:53 < [Coke]> rakudo: ...
10:53 <+p6eval> rakudo 25af2d:  ( no output )
10:53 < [Coke]> rakudo: try { die "foo" }; try { die; CATCH { say $!} }
10:53 <+p6eval> rakudo 25af2d: OUTPUT«foo␤»


Closable with tests.

-- 
Will "Coke" Coleda

Reply via email to