{"provider_url":"https://hatena.blog","title":"dmd 2.037 (2)","provider_name":"Hatena Blog","published":"2009-12-05 19:56:50","author_name":"haru-s","version":"1.0","url":"https://haru-s.hatenablog.com/entry/20091205/1260010610","blog_url":"https://haru-s.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20091205%2F1260010610\" title=\"dmd 2.037 (2) - ...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>","type":"rich","width":"100%","description":"import std.stdio; class A { private int value_; public @property { int value() {return value_;}; void value(int i){ value_ = i;}; } } void main() { auto a = new A; a.value = 2; a.value = a.value + 1; //a.value += 1; //error //a.value++; //error writeln(a.value); } \u76f8\u5909\u308f\u3089\u305a\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30fb\u30fb\u30fb\uff0e","image_url":null,"categories":["D\u8a00\u8a9e"],"author_url":"https://blog.hatena.ne.jp/haru-s/","blog_title":"...ing logging 4.0","height":"190"}