[Issue 6892] New: Formatted write with specified length of enum member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 5 04:05:24 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6892
Summary: Formatted write with specified length of enum member
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-11-05 04:04:51 PDT ---
import std.stdio, std.traits;
enum Foo { A };
void main() {
writefln(">%12s<", "A");
Foo[] foos = [EnumMembers!Foo];
writefln(">%12s<", foos[0]);
}
Output dmd 2.057head:
> A<
>A<
Expected output:
> A<
> A<
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list