summaryrefslogtreecommitdiff
path: root/dist/bignum
Commit message (Collapse)AuthorAgeFilesLines
* Increase $bignum::VERSION to 0.37Father Chrysostomos2013-10-231-1/+1
|
* Minor bignum POD fix (capitalisation).Marc Simpson2013-10-231-1/+1
|
* [perl #118955] bump $bignum::VERSION to 0.36Tony Cook2013-07-245-5/+5
| | | | | set all other modules in dist/bignum to 0.36 too, the CPAN dist has them all at the same version
* Initialize BigInt's $MBI correctly with "use bigrat lib => '...'".Nathan Trapuzzano2013-07-241-0/+1
|
* typo fix for bigintDavid Steinbrunner2013-05-251-2/+2
| | | | Bump $VERSION.
* Document that range operator '..' can not be overloaded.Moritz Lenz2013-04-141-3/+17
| | | | | Also document that this means that ranges and bigint.pm do not mix perfectly. Bump version numbers.
* dist/bignum/lib/bignum.pm: Fix broken pod linkKarl Williamson2013-03-181-2/+2
|
* dist/bignum/lib/bigrat.pm: Fix broken pod linkKarl Williamson2013-03-181-2/+2
|
* dist/bignum/lib/bigint.pm: Fix broken pod linkKarl Williamson2013-03-181-2/+2
|
* Synchronise VERSIONs of all bignum modulesFlorian Ragwitz2013-03-023-3/+3
|
* Fix various minor pod issuesKarl Williamson2013-01-242-5/+5
| | | | | These were all uncovered by the new Pod::Checker, not yet in core. Fixing these will speed up debugging the new Checker.
* bignum: Suppress warnings under 5.6Father Chrysostomos2012-10-043-11/+11
| | | | | | | | 5.6 does not like it when a sub is declared with a prototype after a reference to it has been taken. 5.6 does not think lowercase module names should be exempt from reserved word warnings before ->.
* bignum overrides.t: Fix for 5.8Father Chrysostomos2012-10-041-3/+3
| | | | | | | | | | We use the ;$ prototype for testing global overrides under 5.8, as it had no _ prototype. But back then (before 5.14, in fact) ;$ did not give a function unary precedence. Comparing against 5.009004 in bigint scope is the same as comparing against 5, resulting in incorrect version checks and skips being skipped.
* bigint: Fix new oct override for older Math::BigIntFather Chrysostomos2012-10-041-2/+2
| | | | | Older versions of Math::BigInt required the input to from_oct to begin with a 0.
* bignum overrides.t: Skip some tests under 5.8Father Chrysostomos2012-10-041-12/+24
|
* Increase bignum versions to 0.31 after the preceding changeFather Chrysostomos2012-10-043-3/+3
|
* Rewrite bignum’s hex and oct overridesFather Chrysostomos2012-10-044-124/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As mentioned in <https://rt.cpan.org/Ticket/Display.html?id=79915>, bigint.pm does not use any prototype when globally overriding hex. This means that map { hex } ... will stop working in completely unre- lated code if bigint happens to be loaded. (Explicit $_ will con- tinue to work.) I thought it would be a simple matter of adding the right prototype depending on perl version (and inferring $_), but the basic tests I added failed for other reasons after I fixed the prototype and $_ handling. It turns out this whole thing is a mess, so I have basically reimple- mented these two overrides. What bigint, bignum and bigrat were doing was this: In import, *CORE::GLOBAL::hex and ::oct are assigned functions that create Math::BigInt objects if the pragma is in effect. If import is passed 'hex' or 'oct', then the function assigned does not check the pragma hints, but simply creates Math::BigInt objects regardless. This means that ‘use bigrat’ stops hex() and oct() from creating objects in ‘use bigint’ scopes, and vice versa. In fact, whichever pragma is loaded last wins. Any scopes elsewhere in the program that use the same pragma will have special hex() and oct() behaviour. But the other two lowercase big* pragmata will be disabled with regard to hex and oct. Having ‘use bigint 'hex'’ override hex globally makes no sense to me. I have no qualms about changing it, as it was already broken. Any subsequent ‘use bigint;’ would turn off the global override. So now it exports hex or oct to the calling package, just like a normal mod- ule. You can now also call bigint::hex. Also, in writing tests I found that oct("20") gives me 20. Apparently this was never tested properly. I also found notes about ‘5.9.4 or later’ when the code checked $] > 5.009004. (Actually, in one place the code checked > 5.009003, so I made it match, as we use the _ prototype now, which was intro- duced in 5.9.5.) One was in the docs, so I changed it to 5.10.0, since it is not helpful to mention dev versions. The docs were also wrong to imply that ‘no bigint’ would countermand ‘use bigint 'hex'’.
* Synchronise bignum with CPANFlorian Ragwitz2012-09-114-4/+4
|
* Fixup for bigint docsHugo van der Sanden2012-06-171-40/+36
| | | | | Some copy/paste and insertion errors in bignum 0.19 left the docs in a confusing state.
* Upgrade bignum to version 0.29Florian Ragwitz2011-08-083-3/+3
|
* Make verbatim pod in bignum.pm fit in 80 columnsFather Chrysostomos2011-08-021-3/+3
|
* Make verbatim pod in bigint.pm fit in 80 columnsFather Chrysostomos2011-07-311-4/+4
|
* Synchronise bignum to CPANFlorian Ragwitz2011-07-094-4/+4
|
* Versions bumps after the prev commitFather Chrysostomos2011-03-283-3/+3
|
* [perl #87216] POD typo in bigint, bignum and bigrat pragmasgene sullivan2011-03-283-3/+3
| | | | | | | | | The POD has a typo in the following three pragmas: bigint bignum bigrat The typo is similar for each pragma: CAVAETS should be changed to CAVEATS.
* Remove training whitespace in Pod which can confuse pod/buildtocNicholas Clark2011-01-211-3/+3
| | | | | | Some whitespace is being interpreted as "not a blank line" causing it (and possibly other parsers) to assume that subsequent text is part of the preceding =head or =item
* Bumped bignum's versions for release per cmpVERSION.plJesse Vincent2011-01-203-3/+3
|
* Fix typos (spelling errors) in dist/*Peter J. Acklam) (via RT2011-01-076-29/+29
| | | | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81888] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81888 > Signed-off-by: Abigail <abigail@abigail.be>
* Upgrade bignum from version 0.24 to 0.25Florian Ragwitz2010-09-153-3/+3
|
* Convert bignum tests from Test to Test::More.Nicholas Clark2010-09-109-223/+146
|
* Remove redundant lexicals from 3 bignum tests that require t/infnan.inc.Nicholas Clark2010-09-103-6/+0
|
* Remove obsolete core test directory boilerplate from bignum.Nicholas Clark2010-09-1020-148/+15
| | | | | | | This was only needed for testing in the core, when the core's tests all ran in the top level t/ directory. Without this getting in the way, we don't need t/TEST and t/harness to run the tests with absolute paths in @INC. Testing in the CPAN distribution is unaffected.
* Synchronize with bignum 0.24Florian Ragwitz2010-09-044-11/+4
|
* blead is upstream for bignumFlorian Ragwitz2010-09-0326-0/+2932