[Issue 6447] iota(BigInt) too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 6 20:05:51 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6447


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-08-06 20:05:50 PDT ---
BigInt isn't considered an integral by isIntegral, hence why it doesn't work.
We should probably look at having a template in std.traits which covers both
the built-in integral types and BigInt so that those functions which can work
with both have an easy way to test for it. It's either that or every function
that could use BigInt is going to have to test for it explicitly on top of
testing for isIntegral.

Regardless, I don't see any reason why using iota with BigInt shouldn't be made
to work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list