Skip Menu |

This queue is for tickets about the Math-BigInt-GMP CPAN distribution.

Report information
The Basics
Id: 65367
Status: resolved
Priority: 0/
Queue: Math-BigInt-GMP

People
Owner: Nobody in particular
Requestors: peter.john.acklam [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.22
  • 1.23
  • 1.24
  • 1.25
  • 1.26-TRIAL
  • 1.27-TRIAL
  • 1.28
  • 1.29-TRIAL
  • 1.30
  • 1.31-TRIAL
  • 1.32
  • 1.33
Fixed in: (no value)



Subject: False claim of API v2 conformance (missing _nok() method)
Math::BigInt::GMP claims to be API v2 conformant: $ perl -MMath::BigInt::GMP -wle 'print Math::BigInt::GMP->api_version' 2 But it isn't, because the required _nok() method is missing: $ perl -MMath::BigInt::GMP -wle '$LIB = "Math::BigInt::GMP"; $x = $LIB->_new(7); $y = $LIB->_new(5); $z = $LIB->_nok($x, $y); print $LIB->_str($z)' Can't locate object method "_nok" via package "Math::BigInt::GMP" at -e line 1. The first trace of the _nok() method appears in version 1.22. The CHANGES file says "support api_version() 2 by adding _nok()". Alas, there are no traces of _nok() actually being implemented. This error is not deteced because, as with *all* other library functions, there is no explicit test of the library method! Math::BigInt doesn't fail because it includes a test to see if _nok() is available. "if ($CALC->can('_nok')) { ...".
_nok() method implemented in Math::BigInt::GMP version 1.34.