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

Owner: Nobody
Requestors: zefram [at]

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

To: rakudobug [...]
From: Zefram <zefram [...]>
Date: Sat, 19 Sep 2015 20:59:16 +0100
Subject: [LTA] instantiated Numeric hangs on numeric ops
Download (untitled) / with headers
text/plain 626b
This is less than awesome: $ ./perl6 -e 'my $a =; say $a + 0' [hangs] ^C With the Numeric class being as abstract as it is, it doesn't make a whole lot of sense to be able to instantiate it directly. But the language seems to like making everything being instantiable. Given that it is instantiable, having a Numeric object that hangs on addition is less than awesome. I guess there's some method delegation going on that loops back to itself, because nothing has said concretely how to add a Numeric to an Int. It would be better for the lack of specific method to be detected and signal an error. -zefram

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

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