Jonathan M Davis:
> > foreach (i; 1 .. BigInt(10)) {}
>
> No. That's foreach. BigInt isn't going to work with the .. syntax regardless
> of what isIntegral does. I assume what you're really asking is whether
I'm asking about foreach, not about iota. Fixing iota is easy, it's just a
matter of changing Phobos.
This is why at the top of my original post I have written:
> In my opinion it's important to make BigInts work in most places where normal
> ints work.
> I think it's even worth modifying D language a bit (if and where necessary)
> to allow this.
The point of my post was to talk about foreach. The title of this thread is
"Mixed int/BigInt foreach interval".
Bye,
bearophile