[Issue 1110] std.format.doFormat + struct without toString() == crash
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 8 07:43:19 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1110
------- Comment #1 from fvbommel at wxs.nl 2007-04-08 09:43 -------
Created an attachment (id=137)
--> (http://d.puremagic.com/issues/attachment.cgi?id=137&action=view)
Proposed patch
Adds
=====
if (tis.xtoString is null)
throw new FormatError("Can't convert " ~ tis.toString() ~ " to string:
\"char[] toString()\" not defined");
=====
when formatting a struct.
--
More information about the Digitalmars-d-bugs
mailing list