On Fri Jul 13 05:00:25 2012, [email protected] wrote:
> I've made this stupid mistake and was unable to find bug (space
> between bracket and open) due to misleading error message.
>
> $ perl6 -e 'my $f = open ("logo_32x32.png", :bin); say
> $f.read(1e5).bytes; $f.close;'
> This type cannot unbox to a native string
>
> moritz @ 1:54
> still the error is LTA
> it should eithe constrain the type to Str, or should coerce to it
>
> tadzik @ 1:55
> the first thing we ever put into Perl::Critic is checking for things
> like this
> subcall (foo); "please write me as subcall((foo)) to not confuse
> everybody"
Behavior has changed:
$ ./perl6 -e 'my $f = open ("./perl6", :bin); say $f.read(1e5).bytes; $f.close;'
Failed to open file /Users/coke/sandbox/rakudo/perl6 bin True: no such
file or directory
in block <unit> at -e:1
$ ./perl6 --version
This is perl6 version 2015.06-217-g3776723 built on MoarVM version
2015.06-48-g017d184
--
Will "Coke" Coleda