digitalmars.D.bugs - [Issue 634] New: writef doesn't work on enums
- d-bugmail puremagic.com Dec 02 2006
- d-bugmail puremagic.com Dec 27 2006
http://d.puremagic.com/issues/show_bug.cgi?id=634 Summary: writef doesn't work on enums Product: D Version: 0.175 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: smjg iname.com ---------- import std.stdio; enum Qwert { Yuiop, Asdfg } void main() { writefln(Qwert.Yuiop); } ---------- Error: std.format formatArg ---------- The same happens with either writefln("%s", Qwert.Yuiop); or writefln("%d", Qwert.Yuiop); It may be the case that formatting of enums isn't yet implemented. But would it do any harm to have it just write out the numerical value for the meantime? In particular, there's no reason that the %d format shouldn't already work on them. --
Dec 02 2006
http://d.puremagic.com/issues/show_bug.cgi?id=634 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla digitalmars.com 2006-12-27 02:00 ------- Fixed DMD 0.178 --
Dec 27 2006








d-bugmail puremagic.com