3 ms·
I don't know of any DSLs, but the stdlib arbitrary precision integer library works just fine at compile time: enum x = BigInt("0xffffffffffffffffffffffffffff
by moonchild 6y ago
I don't know of any DSLs, but the stdlib arbitrary precision integer library works just fine at compile time:
enum x = BigInt("0xffffffffffffffffffffffffffffffff") % 2;
writeln(x);
('enum' means 'make this value a compile-time constant; error if you can't')