Carlos:

What do I have to know about how D works with data ?

If you want to avoid the overflow, then use a BigInt from std.bigint:

import std.stdio, std.bigint;

void main() {
    foreach (immutable i; 0 .. 100)
        writeln(i, " ", 2.BigInt ^^ i);
}

Bye,
bearophile

Reply via email to