develooper Front page | perl.perl5.porters | Postings from July 2015

Re: Views on changing Math-BigInt OO design

Thread Previous | Thread Next
From:
David Bundgaard
Date:
July 28, 2015 12:17
Subject:
Re: Views on changing Math-BigInt OO design
Message ID:
8D25D924-4EC4-4CE7-A4D3-38B760A15597@gmail.com
I would consider that Math::BigFloat to load Math::BigInt to be unexpected behavior and should not be endorsed. 

Either use Math::BigNum to load every package or load the needed individual package by its name.


Best


David Bundgaard

> On 28 Jul 2015, at 13:56, Abigail <abigail@abigail.be> wrote:
> 
>> On Tue, Jul 28, 2015 at 01:19:37PM +0200, Peter John Acklam wrote:
>> James, that is correct. The user interface would not change at all. I
>> should have mentioned that in the original posting.
> 
> Code like the snippet below may start to fail, unless using loading
> Math::BigNum loades the other Math::Big* packages.
> 
> 
>    use Math::BigFloat;  # Currently loads Math::BigInt
> 
>    my $float   = Math::BigFloat:: -> new (...);
>    my $integer = Math::BigInt::   -> new (...);
> 
> 
> 
> 
> Abigail

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About