Fixed with 57f8f8f0faa81ee9 , closable with tests

> On 30 Apr 2016, at 05:28, Alex Jakimenko (via RT) 
> <[email protected]> wrote:
> 
> # New Ticket Created by  Alex Jakimenko 
> # Please include the string:  [perl #128034]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=128034 >
> 
> 
> Code:
> say split ‘b’, ‘aba’, NaN
> 
> Result:
> This type cannot unbox to a native integer
>  in block <unit> at -e line 1
> 
> 
> OK, that error means that we cannot use Inf and -Inf too, right?
> 
> Code:
> say split ‘b’, ‘aba’, +∞
> say split ‘b’, ‘aba’, -∞
> 
> Result:
> (a a)
> ()
> 
> 
> ↑ But we can!
> 
> I think that the error message is LTA because it leads the user to think that 
> anything that is not unboxable to a native int is not OK, while you can 
> actually use Inf and -Inf.

Reply via email to