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.
Created attachment 137 [details] 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.
Fixed DMD 1.019 and 2.003
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル