import std.stdio, std.bigint; void main() { writefln("%10d", BigInt(10)); writefln("%10d", 10); } It prints: 10 10
Yes, that's a limitation of std.format. It only provides the character ('x', 'd', 's', etc). The same thing applies to std.complex.
(In reply to comment #1) > Yes, that's a limitation of std.format. If that's a limitation meant to stay, then writef is better to give a format error (possibly at compile-time!).
(In reply to comment #2) > (In reply to comment #1) > > Yes, that's a limitation of std.format. > > If that's a limitation meant to stay, then writef is better to give a format > error (possibly at compile-time!). Of course it's not meant to stay.
https://github.com/D-Programming-Language/phobos/pull/230
Fixed in DMD 2.055