Mixed int/BigInt foreach interval
Timon Gehr
timon.gehr at gmx.ch
Mon Sep 26 15:00:01 PDT 2011
On 09/26/2011 11:46 PM, Andrej Mitrovic wrote:
> On 9/26/11, Timon Gehr<timon.gehr at gmx.ch> wrote:
>> it checks if the type is some sort of bit vector
>> with two's complement arithmetics defined on it.
>
> I thought it's just hardcoded:
>
> template isIntegral(T)
> {
> enum bool isIntegral = staticIndexOf!(Unqual!(T), byte,
> ubyte, short, ushort, int, uint, long, ulong)>= 0;
> }
Yes, of course, that is how it is implemented.
More information about the Digitalmars-d
mailing list