in reply to Re^5: Perl can't make some easy arithmetics :(
in thread Perl can't make some easy arithmetics :(
According to it's POD is bigint overloading operators, so why restricting this to integers only?
Maybe it's because of a restriction in the overload mechanics but as I said I have no time to look into the details .... (and this place is full of honorable monks willing to answer it! ;)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
¹) to elaborate further: Perl tries hard not to distinguish between different types of scalars, that's one of the reasons why it has a nummeric add + and a string concat . where languages like JS only have + for both.
But bigint seems to break this "paradigm".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Perl can't make some easy arithmetics :(
by rsFalse (Chaplain) on Oct 25, 2014 at 00:27 UTC | |
by AnomalousMonk (Archbishop) on Oct 25, 2014 at 00:37 UTC | |
by rsFalse (Chaplain) on Oct 25, 2014 at 00:55 UTC | |
by rsFalse (Chaplain) on Oct 26, 2014 at 17:25 UTC | |
by syphilis (Archbishop) on Oct 27, 2014 at 02:17 UTC | |
by LanX (Saint) on Oct 26, 2014 at 17:57 UTC |