# New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
# Please include the string:  [perl #130459]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130459 >


Code:
say Inf.Rat.perl

Result:
P6opaque: get_boxed_ref could not unbox for the representation '20' of type Num
  in block <unit> at -e line 1


What's 20? :)
Anyway, Num-ish Rats were first added in 
https://github.com/rakudo/rakudo/commit/1f3ca6469759c79aa809d60a7741b3a92fb9330f
 (Inf was then represented by 1/0), but then the solution was improved in 
https://github.com/rakudo/rakudo/commit/498d0a4ae4572a84f80c0c572632e12017d779f3


As for the solution, it should not blow up like this for sure. But perhaps the 
whole thing should be changed? I don't know.

Interesting discussion here: 
https://irclog.perlgeek.de/perl6-dev/2016-12-30#i_13826116

Reply via email to