Mixed int/BigInt foreach interval

bearophile bearophileHUGS at lycos.com
Tue Sep 27 14:39:24 PDT 2011


kennytm:

> foreach (a; b .. c) d;   is also a lowering, and i'd say the 'int + BigInt'
> not able to typeCombine (statement.c:2282) a bug.
> 
> By the way, the statement
> 
>     foreach (a; BigInt(1) .. 10) ...
> 
> does compile and work, at least for the toolset from git master.

Thank you for your answer. This was the real topic of my original post :-)
Sorry for the confusion.

Bye,
bearophile


More information about the Digitalmars-d mailing list