When formatting a struct instance, std.format.doFormat doesn't check whether TypeInfo_Struct.xtoString is null before calling it. IMHO it should check for this and throw an exception if it's null.
Comment #1 by fvbommel — 2007-04-08T09:43:18Z
Created attachment 137
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.