On Fri Aug 14 21:31:09 2015, alex.jakime...@gmail.com wrote:
> Code:
> say Inf.base(16)
> 
> Result:
> Type check failed in assignment to '$int_part'; expected 'Int' but got
> 'Failure'
>   in block <unit> at ./test.pl:2
> 
> Same thing with NaN.
> 
> IRC log: http://irclog.perlgeek.de/perl6/2015-08-15#i_11061555

This now says:

11:45 < [Coke]> m: Inf.base(16)
11:45 <+camelia> rakudo-moar 617bb4: OUTPUT«Earlier failure:␤ Cannot coerce Inf
                 or NaN to an Int␤  in block <unit> at /tmp/NXJAFvBkuW line
                 1␤␤Final error:␤ Type check failed in assignment to $int_part;
                 expected Int but got Failure (Failure.new(exception...)␤  in
                 block <unit> at /tmp/NXJA…»
11:45 < [Coke]> m: NaN.base(16)
11:45 <+camelia> rakudo-moar 617bb4: OUTPUT«Earlier failure:␤ Cannot coerce Inf
                 or NaN to an Int␤  in block <unit> at /tmp/6km9xRn2h_ line
                 1␤␤Final error:␤ Type check failed in assignment to $int_part;
                 expected Int but got Failure (Failure.new(exception...)␤  in
                 block <unit> at /tmp/6km9…»

Which seems reasonable based on previous discussion about attempting to use non 
Int sentinel values as Ints.

Closable, I think.
-- 
Will "Coke" Coleda

Reply via email to