Subject: | Dotted versions hamstrung by VERSION_MAX |
A curious discovery I noticed reading the tests.
2**31 is considered "too big" in a part in a dotted decimal.
But 2**40 works perfectly for a floating part in a floating version.
perl -Mversion -E'use warnings; use strict; say version->new(q[1.] . 2**40) <=> version->new(q[1.] . ( 2**40+1) )'
-1
perl -Mversion -E'use warnings; use strict; say version->new(q[1.1.] . 2**31)->normal'
Integer overflow in version at -e line 1.
v1.1.2147483647
I'm not convinced the second of these has to be that way.