{"url":"https://haru-s.hatenablog.com/entry/20110415/1302889788","categories":["D\u8a00\u8a9e"],"author_url":"https://blog.hatena.ne.jp/haru-s/","title":"\u9280\u884c\u30af\u30e9\u30b9\u3092\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306b\u6271\u3046","blog_url":"https://haru-s.hatenablog.com/","height":"190","description":"\u3069\u3053\u3067\u3069\u306e\u3088\u3046\u306a\u7af6\u5408\u3092\u8d77\u3053\u3057\u3046\u308b\u306e\u304b\u60f3\u50cf\u3059\u308b\u306e\u304c\u96e3\u3057\u3044\uff0e \u3053\u306e\u3088\u3046\u306b\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306b\u4f7f\u3048\u308b\u30af\u30e9\u30b9\u3092\u300c\u30b9\u30ec\u30c3\u30c9\u30b3\u30f3\u30d1\u30c1\u30d6\u30eb\u3067\u3042\u308b\u300d\u3068\u3044\u3046\uff0e import std.stdio; import core.thread; import core.sync.mutex; class Bank { private int money_; void payin(int m) { money_ += m; } void payout(int m) { money_ -= m; if (money_ < 0) { // \u3053\u3053\u306b\u306f\u6765\u306a\u3044 throw new Exception(\"pay out exception\u2026","image_url":null,"width":"100%","version":"1.0","author_name":"haru-s","provider_url":"https://hatena.blog","published":"2011-04-15 02:49:48","type":"rich","provider_name":"Hatena Blog","blog_title":"...ing logging 4.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20110415%2F1302889788\" title=\"\u9280\u884c\u30af\u30e9\u30b9\u3092\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306b\u6271\u3046 - ...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>"}