#import std.stdio; #void main() { # const char[][] x = ["%s","123"]; # writefln(x); #} C:\dmd>dmd -run bug [Error: std.format This happens because doFormat is called recursively, once for each of the elements of the array. This means that there should never be any parsing for string elements, since there'll never be any 2nd argument to be formatted. A possible fix (+patch) can be found at: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=6505 "Because the new doFormat takes the extra "bool parse" parameter, the fix is simple: invoke doFormat with parse set to false."
Created attachment 85 [details] Fix by adding "bool parse" argument to doFormat; Adds write,writeln,fwrite,fwriteln
See also #652
Fixed DMD 1.005
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル