{"title":"\u7d99\u7d9a\u3067\u76f8\u4e92\u547c\u3073\u51fa\u3057\u3001\u3082\u3063\u3068","image_url":null,"width":"100%","categories":[],"published":"2006-03-03 00:00:02","blog_title":"rubyco\uff08\u308b\u3073\u3053\uff09\u306e\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/rubyco/","url":"https://rubyco.hatenadiary.org/entry/20060303/callcc3","description":"\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u306e\u6df1\u307f\u307e\u3067\u300c\u623b\u308b\u300d\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u6301\u305f\u305b\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306b\u6301\u305f\u305b\u3066\u3044\u307e\u3059\u3002 amethod\u306e\u623b\u308a\u5024\u306f\u3001\u51e6\u7406\u304c\u751f\u304d\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092bmethod\u306b\u77e5\u3089\u305b\u308b\u305f\u3081\u3067\u3059\u3002 class Rubyco def initialize @a = @b = nil end def amethod aval = 1 callcc {|@a|} if aval < 5 puts aval aval += 1 @b.call if @b true else false end end def bmethod bval = 1000 callcc {|@b|\u2026","type":"rich","author_name":"rubyco","blog_url":"https://rubyco.hatenadiary.org/","height":"190","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubyco.hatenadiary.org%2Fentry%2F20060303%2Fcallcc3\" title=\"\u7d99\u7d9a\u3067\u76f8\u4e92\u547c\u3073\u51fa\u3057\u3001\u3082\u3063\u3068 - rubyco\uff08\u308b\u3073\u3053\uff09\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}