digitalmars.D.bugs - [Issue 9592] New: Justified Tuple printing
- d-bugmail puremagic.com (37/46) Feb 25 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9592
http://d.puremagic.com/issues/show_bug.cgi?id=9592 Summary: Justified Tuple printing Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc import std.stdio: writeln, writefln; import std.typecons: tuple; void main() { auto s = "hello"; writefln(">%40s<", s); writefln(">%-40s<", s); auto t = tuple("hello"); writefln(">%40s<", t); writefln(">%-40s<", t); } dmd 2.063alpha prints:hello< hello < Tuple!(string)("hello")< Tuple!(string)("hello")<But maybe it should print:hello< hello < Tuple!(string)("hello")< Tuple!(string)("hello") <-------------------- Note: currently this code doesn't give an error, I don't know if this is correct: import std.stdio: writefln; void main() { auto s = "hello"; writefln(">%-s<", s); } It prints:hello<-- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 25 2013