Skip Menu |
Report information
Id: 130171
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] Inf.Rat.perl produces a really bad error message (Inf.Rat.perl)
From: Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko [...] gmail.com>
Date: Thu, 24 Nov 2016 21:27:48 +0200
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 439b
Code:
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


There is no Num in the code, there is no 20, and the rest is just internal stuff that makes no sense to the user.

In some sense, this is a subset of https://rt.perl.org/Ticket/Display.html?id=128857

See this IRC log for some background: https://irclog.perlgeek.de/perl6/2016-11-24#i_13624557
Download (untitled) / with headers
text/plain 1.3k
On Thu, 24 Nov 2016 11:28:06 -0800, alex.jakimenko@gmail.com wrote: Show quoted text
> *Code:* > 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 > > > There is no Num in the code, there is no 20, and the rest is just internal > stuff that makes no sense to the user. > > In some sense, this is a subset of > https://rt.perl.org/Ticket/Display.html?id=128857 > > See this IRC log for some background: > https://irclog.perlgeek.de/perl6/2016-11-24#i_13624557
More discussion starts here: http://irclog.perlgeek.de/perl6/2016-11-24#i_13624763 19:35 < nwc10> this is also a bug? 19:35 < nwc10> m: say Inf.Rat*0 19:35 <+camelia> rakudo-moar 61a18c: OUTPUT«Type check failed in binding to nu; expected Int but got Num (NaN)␤ in block <unit> at <tmp> line 1␤␤» 19:36 < viki> nwc10: that's the same cause 19:36 < nwc10> OK. I'll add that to the ticket unless someone else has already 19:37 < viki> nwc10: there're a couple of related tickets: https://rt.perl.org/Ticket/Display.html?id=127341#ticket-history and https://rt.perl.org/Ticket/Display.html?id=128857#ticket-history 19:38 < viki> And this is the commit that explains what problem we solved by the current situation: https://github.com/rakudo/rakudo/commit/498d0a4ae4572a84f80c0c572632e12017d779f3 19:38 < viki> So any new solutions should solve that problem too.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org