[Issue 7480] New: Unhelpful formatting specifier mismatch exception message for pointers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 10 21:44:47 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7480
Summary: Unhelpful formatting specifier mismatch exception
message for pointers
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: code at klickverbot.at
--- Comment #0 from klickverbot <code at klickverbot.at> 2012-02-10 21:44:45 PST ---
Currently (2.058 Git), the following snippet triggers a generic enforce()
exception without any further information:
---
import std.stdio;
void main() {
int a;
writefln("%d", &a);
}
---
A FormatException with a helpful message should be thrown instead.
--
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