From:

Date:

July 28, 2015 12:31Subject:

Re: Views on changing Math-BigInt OO designMessage ID:

20150728123122.GB8093@almanda.fritz.boxOn Tue, Jul 28, 2015 at 02:16:47PM +0200, David Bundgaard wrote: > I would consider that Math::BigFloat to load Math::BigInt to be unexpected behavior and should not be endorsed. Unexpected behaviour? It's *documented* to work that way: From the Math::BigFloat documentation: Please note that Math::BigFloat does not use the denoted library itself, but it merely passes the lib argument to Math::BigInt. So, instead of the need to do: use Math::BigInt lib => 'GMP'; use Math::BigFloat; you can roll it all into one line: use Math::BigFloat lib => 'GMP'; It is also possible to just require Math::BigFloat: require Math::BigFloat; This will load the necessary things (like BigInt) when they are needed, and automatically. Now, we may all agree that this was unfortunate, and we even may agree the possible breakage is worth the change, but we shouldn't dismiss it with "well, it's unexpected behaviour and should not be endorsed". AbigailThread Previous | Thread Next

- Views on changing Math-BigInt OO design by Peter John Acklam
- Re: Views on changing Math-BigInt OO design by Zefram
- Re: Views on changing Math-BigInt OO design by Shlomi Fish
- Re: Views on changing Math-BigInt OO design by James E Keenan
- Re: Views on changing Math-BigInt OO design by Peter John Acklam
- Re: Views on changing Math-BigInt OO design by Abigail
- Re: Views on changing Math-BigInt OO design by David Bundgaard
**Re: Views on changing Math-BigInt OO design**by Abigail- Re: Views on changing Math-BigInt OO design by Peter John Acklam
- Re: Views on changing Math-BigInt OO design by Aristotle Pagaltzis
- Re: Views on changing Math-BigInt OO design by John Peacock
- Re: Views on changing Math-BigInt OO design by Peter John Acklam
- Re: Views on changing Math-BigInt OO design by Aristotle Pagaltzis
- Re: Views on changing Math-BigInt OO design by bulk88

nntp.perl.org: Perl Programming lists via nntp and http.

Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About