2014-03-01ãã1ã¶æéã®è¨äºä¸è¦§
https://github.com/ksss/mruby-ostruct CRubyã®OpenStructãmrubyã«ç§»æ¤ãã¾ããã åãããã£ãã«ã¯ãã£ããã©ãmrubyå´ã§åçã«singleton methodãä½ãKernel#define_singleton_methodããªãã£ãã®ã§ãã ã®Hashã®ã©ããã¼ã«ãªã£ã¦ãã¾ããã èªåã§Kernelâ¦
æè¿mrubyã«ã³ããããã¦ããã®ã§èªåã®æ´»åãã¾ã¨ãã¾ãã mrubyãå°ãããã話 mrubyã§ã¯ãæååã®æ±ãã¯ã·ã³ãã«ã«char*ãæ§é ä½ã§ã©ãããã¦ãã¾ããã struct RString { MRB_OBJECT_HEADER; mrb_int len; union { mrb_int capa; struct mrb_shared_strâ¦
èªåã§ãä½ãèµ·ãã£ã¦ããã®ããããã¾ãããã 大æ±æ¸Rubyä¼è°04ã§è©±ããã¨ã«ãªãã¾ããã http://regional.rubykaigi.org/oedo04/ ä»ããç·å¼µã§æ³£ãããã ä½ã話ããèããªããã