sumiiããã®ãã¯ãã¼ã¸ã£ã«ããè¶ è»½é並è¡ããã»ã¹ãããjijixiãããRubyã«ç§»æ¤ãããããªã®ã§ã試ãã¦ã¿ã¾ãããjijixiãããæ¸ãããµã³ãã«ãåçµãã¦(ãã®ãã¨ãå¤æ°åãªã©ãèªåã®ç解ããç¯å²ã§æ¸ãæãã¦)ãã£ã¨ç解ãã¾ããã require 'picalc' # Syntax sugar class Chan def <<(arg) send(self, arg) end def >>(arg) recv(self, arg) end end # Make ready for server. server_channel = Chan.new server_proc = Proc.new { server_channel >> Proc.new{|x, response_channel| y = x * x # Service response_channel << y s
{{#tags}}- {{label}}
{{/tags}}