Re: Rationale for $!

[email protected] (Felipe Gasper) Wed, 27 Jan 2016 11:06:57 -0500
Newsgroups perl.perl6.language
Message-ID <[email protected]>
On 27 Jan 2016 11:03 AM, Brandon Allbery wrote:
>
> On Wed, Jan 27, 2016 at 11:00 AM, Felipe Gasper <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Unrelated, but, does open() not throw on failures anyway? (Noodling
>     with the perl6 REPL just now seems inconclusive.)
>
>
> There have been issues with failures in sink context not throwing, IIRC?
> So how you were noodling can matter.
>

felipe@Macintosh-3 00:45:46 /
 > perl6
 > open("/dfgsgsdfgd", :r);
Failed to open file /dfgsgsdfgd: no such file or directory
 > my $f = open("/dfgsgsdfgd", :r);
Failed to open file /dfgsgsdfgd: no such file or directory
 > print $f;
(HANDLED) Failed to open file /dfgsgsdfgd: no such file or directory
   in any  at 
/Users/felipe/.rakudobrew/moar-2015.12/install/share/perl6/runtime/CORE.setting.moarvm 
line 1
   in block <unit> at <unknown file> line 1
 >

-F