{"provider_name":"Hatena Blog","title":" \u30b3\u30eb\u30fc\u30c1\u30f3","provider_url":"https://hatena.blog","description":"\u3068\u3053\u308d\u3067 Lua \u306e\u8a00\u8a9e\u7684\u306a\u7279\u5fb4\u306f\u300c\u306a\u3093\u3067\u3082\u30c6\u30fc\u30d6\u30eb\u300d\u3068\u3044\u3046\u3053\u3068\u304b\u3068\u601d\u3063\u305f\u3089\u3001\u3042\u3068\u30b3\u30eb\u30fc\u30c1\u30f3\u3082\u3042\u308b\u3053\u3068\u3092\u77e5\u308b\u3002\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u4f5c\u308b\u306e\u306b\u306f\u3001 \u95a2\u6570\u3092\u7528\u610f\u3057\u3001 coroutine.create \u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u5316\u3057\u3001 coroutine.resume \u3067\u5b9f\u884c\u3001 \u30b3\u30eb\u30fc\u30c1\u30f3\u5185\u3067\u306f coroutine.yield \u3067\u5b9f\u884c\u3092\u4e2d\u65ad\u3057\u3001\u547c\u51fa\u3057\u5143\u306b\u623b\u308b \u3068\u3044\u3046\u624b\u9806(\uff1f)\u306b\u306a\u308b\u3002 function co(x) local v while true do x = x + 1 v = coroutine.yield(x) print(\"coroutine\\n\", x, v) end end f = coroutine.cr\u2026","width":"100%","height":"190","url":"https://jmk.hatenadiary.org/entry/20060321/p3","blog_url":"https://jmk.hatenadiary.org/","type":"rich","categories":[],"version":"1.0","image_url":null,"author_url":"https://blog.hatena.ne.jp/jmk/","author_name":"jmk","published":"2006-03-21 00:00:02","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjmk.hatenadiary.org%2Fentry%2F20060321%2Fp3\" title=\" \u30b3\u30eb\u30fc\u30c1\u30f3 - jmk\u306e\u65e5\u8a18 - lua \u52c9\u5f37\u4e2d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"jmk\u306e\u65e5\u8a18 - lua \u52c9\u5f37\u4e2d"}