A simple sieve in Phobos?

Chris Williams yoreanon-chrisw at yahoo.co.jp
Tue Mar 18 18:36:12 PDT 2014


On Wednesday, 19 March 2014 at 01:29:16 UTC, bearophile wrote:
> - A function to compute the GCD on ulongs/longs/bigints is 
> useful.
> (Issues 4125 and 7102).

Yeah, several methods work just fine if you change their 
declaration to isIntegral!T || is(typeof(T) == BigInt). gcd() is 
one of them.

Unfortunately, I don't trust rewriting isIntegral, so this sort 
of change would need to be on a function-by-function basis.


More information about the Digitalmars-d mailing list