Mixed int/BigInt foreach interval

Simen Kjaeraas simen.kjaras at gmail.com
Mon Sep 26 19:08:09 PDT 2011


On Tue, 27 Sep 2011 03:38:11 +0200, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> isIntegral was specifically designed for testing that a type was
> one of byte, ubyte, short, ushort, int, uint, long, and ulong, and that's
> exactly what it's doing.

The name indicates it checks for generic integral-ness, not for built-in  
types.

Given that changing isIntegral is likely to break a lot of code (is it?),
perhaps we should also add behavesLikeIntegral, which checks for behavior
instead of concrete types.

-- 
   Simen


More information about the Digitalmars-d mailing list