On 27 Jan 2016 11:03 AM, Brandon Allbery wrote:

On Wed, Jan 27, 2016 at 11:00 AM, Felipe Gasper <fel...@felipegasper.com
<mailto:fel...@felipegasper.com>> 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

Reply via email to