www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.bigint?

reply "Julian Salazar" <julian ifeelrandom.com> writes:
Just wondering, is std.bigint still included in the D2 standard library? 
Yes, the source file is there and the documentation is on the site, but it 
does not appear on the list of standard library modules on the sidebar for 
D2 (but unlike the documentation for std.bitarray, which indicates 
deprecation, the bigint documentation does not). In addition, there are some 
instances where BigInt is a bit dodgy (for example, it is impossible to do 
something such as someBigInt % someIntegerVariable for ANY 
someIntegerVariable type that isn't int, meaning that uint, long, ubyte, 
etc. all produce errors - I might try figuring out the cause of this and 
file some bug reports later).

So is bigint being deprecated in the future or is it just unmaintained?

Thanks,
- Julian 
Jan 26 2010
parent reply Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> writes:
Julian Salazar Wrote:

 Just wondering, is std.bigint still included in the D2 standard library? 
 Yes, the source file is there and the documentation is on the site, but it 
 does not appear on the list of standard library modules on the sidebar for 
 D2 (but unlike the documentation for std.bitarray, which indicates 
 deprecation, the bigint documentation does not). In addition, there are some 
 instances where BigInt is a bit dodgy (for example, it is impossible to do 
 something such as someBigInt % someIntegerVariable for ANY 
 someIntegerVariable type that isn't int, meaning that uint, long, ubyte, 
 etc. all produce errors - I might try figuring out the cause of this and 
 file some bug reports later).
 
 So is bigint being deprecated in the future or is it just unmaintained?
 
 Thanks,
 - Julian 
 
I've written a bug report on the absence of the docs for bigint in the D delivery several releases ago. At first I thought it was a simple oversight, but I have become suspicious...what do they know that we don't??? I know the current implementation (by Janice Caron) has some shortcomings. I thought that someone (Don?) was creating a new implementation, but I don't know if that's true or not. Paul
Jan 26 2010
parent Don <nospam nospam.com> writes:
Paul D. Anderson wrote:
 Julian Salazar Wrote:
 
 Just wondering, is std.bigint still included in the D2 standard library? 
 Yes, the source file is there and the documentation is on the site, but it 
 does not appear on the list of standard library modules on the sidebar for 
 D2 (but unlike the documentation for std.bitarray, which indicates 
 deprecation, the bigint documentation does not). In addition, there are some 
 instances where BigInt is a bit dodgy (for example, it is impossible to do 
 something such as someBigInt % someIntegerVariable for ANY 
 someIntegerVariable type that isn't int, meaning that uint, long, ubyte, 
 etc. all produce errors - I might try figuring out the cause of this and 
 file some bug reports later).

 So is bigint being deprecated in the future or is it just unmaintained?

 Thanks,
 - Julian 
I've written a bug report on the absence of the docs for bigint in the D delivery several releases ago. At first I thought it was a simple oversight, but I have become suspicious...what do they know that we don't??? I know the current implementation (by Janice Caron) has some shortcomings. I thought that someone (Don?) was creating a new implementation, but I don't know if that's true or not.
It's true. I just haven't got around to including it yet. I was waiting for my cache module to be included in druntime; that finally happened in the last release.
 
 Paul
Jan 27 2010