Thread overview | |||||
---|---|---|---|---|---|
|
July 27, 2010 [Issue 4518] New: to!string(enum w/invalid value) produces a somewhat unhelpful error | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4518 Summary: to!string(enum w/invalid value) produces a somewhat unhelpful error Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: diagnostic Severity: enhancement Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: braddr@puremagic.com --- Comment #0 from Brad Roberts <braddr@puremagic.com> 2010-07-27 01:24:41 PDT --- I don't have a quick repro demo yet, but the result is this: std.conv.ConvError: There is no corresponding enum member name in const(myEnum) It would be very nice to add the actual value encountered. Quick incomplete/untested mockup: enum A { a = 1 } writef("%s", cast(A)2); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 28, 2010 [Issue 4518] to!string(enum w/invalid value) produces a somewhat unhelpful error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | http://d.puremagic.com/issues/show_bug.cgi?id=4518 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |rsinfu@gmail.com AssignedTo|nobody@puremagic.com |rsinfu@gmail.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 14, 2010 [Issue 4518] to!string(enum w/invalid value) produces a somewhat unhelpful error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | http://d.puremagic.com/issues/show_bug.cgi?id=4518 Brad Roberts <braddr@puremagic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Brad Roberts <braddr@puremagic.com> 2010-09-14 01:13:51 PDT --- Fixed by rsinfu in: http://www.dsource.org/projects/phobos/changeset/1961 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation