{"provider_name":"Hatena Blog","image_url":null,"url":"https://haru-s.hatenablog.com/entry/20100101/1262330373","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20100101%2F1262330373\" title=\"\u69cb\u9020\u4f53\u304c\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064\u3068\u304d - dmd 2.038 - ...ing logging 4.0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u69cb\u9020\u4f53\u304c\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064\u3068\u304d - dmd 2.038","categories":["D\u8a00\u8a9e"],"version":"1.0","published":"2010-01-01 16:19:33","author_url":"https://blog.hatena.ne.jp/haru-s/","blog_title":"...ing logging 4.0","type":"rich","width":"100%","blog_url":"https://haru-s.hatenablog.com/","author_name":"haru-s","description":"import std.stdio; struct S { int x, y; this(int x, int y) { this.x = x; this.y = y; } } class A { const S s = {1, 2}; } void main() { A a = new A; writeln(a.s); } C:\\d\\projects\\test>dmd main Error: struct S has constructors, cannot use { initializers }, use S( initializers ) instead\u30a8\u30e9\u30fc\u306e\u884c\u756a\u53f7\u304c\u51fa\u306a\u3044\u306e\u3068\uff0c\u30a8\u30e9\u30fc\u2026","height":"190"}