{"provider_url":"https://hatena.blog","height":"190","blog_url":"https://shinh.hatenablog.com/","version":"1.0","categories":["Program","D"],"author_url":"https://blog.hatena.ne.jp/shinichiro_h/","url":"https://shinh.hatenablog.com/entry/20061205/1165257412","published":"2006-12-05 03:36:52","title":" typesafe printf in D","blog_title":"\u517c\u96d1\u8a18","author_name":"shinichiro_h","type":"rich","width":"100%","description":"http://www.kmonos.net/wlog/68.html#_2331061204\u6700\u5f8c\u3084\u308a\u305f\u304b\u3063\u305f\u306e\u306f\u672c\u5f53\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u304b\uff01 import std.stdio; import std.typetuple; template FormatCheckerType(char[] orig, char[] fmt, T...) { static if (fmt.length == 0) { static assert(false, orig ~ \": % comes without type specifier\"); } else { const c = fmt[0]; const l =\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F20061205%2F1165257412\" title=\" typesafe printf in D - \u517c\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_name":"Hatena Blog"}