{"categories":["D\u8a00\u8a9e"],"published":"2011-04-15 02:47:46","image_url":null,"title":"\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u3067\u306a\u3044\u9280\u884c\u30af\u30e9\u30b9","provider_url":"https://hatena.blog","author_name":"haru-s","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20110415%2F1302889666\" title=\"\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u3067\u306a\u3044\u9280\u884c\u30af\u30e9\u30b9 - ...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>","height":"190","version":"1.0","provider_name":"Hatena Blog","description":"import std.stdio; import core.thread; class Bank { private int money_; void payin(int m) { money_ += m; } void payout(int m) { money_ -= m; if (money_ < 0) { // \u30af\u30e9\u30b9\u306e\u5229\u7528\u8005\u304c\u6ce8\u610f\u3057\u3066\u3044\u308c\u3070\u3053\u3053\u306b\u306f\u5230\u9054\u3057\u306a\u3044\u306f\u305a\uff1f throw new Exception(\"pay out exception.\"); } } int money() @property { return money_; } } void main() { auto ba\u2026","blog_url":"https://haru-s.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/haru-s/","type":"rich","width":"100%","url":"https://haru-s.hatenablog.com/entry/20110415/1302889666","blog_title":"...ing logging 4.0"}