November 04, 2004 std.format bug | ||||
---|---|---|---|---|
| ||||
// DMD 0.105 import std.stdio; void main() { writefln("%o", 9); // BUG - outputs 9, should be 10 writefln("%o", 10); // OK - outputs 12, should be 12 writefln("%b", 9); // BUG - outputs 9, should be 1001 writefln("%b", 10); // OK - outputs 1010, should be 1010 } |
Copyright © 1999-2021 by the D Language Foundation