Subject: | native_if_available disables die_on_overflow |
This works as expected:
perl -E 'use Math::Int64 qw(int64 :die_on_overflow); say int64 "9223372036854775808"'
Math::Int64 overflow: Number is out of bounds for int64_t conversion at -e line 1.
But this doesn't:
perl -E 'use Math::Int64 qw(int64 :die_on_overflow :native_if_available); say int64 "9223372036854775808"'
-9223372036854775808
IMO, overflow errors should still be triggered even when a native return value is wanted.
Is there perhaps a workaround where, if I get an object back from int64() I can call a method to get the native Perl scalar value?