Ruby ã«ã¯ä½¿ãããªããªã£ãã¡ã¢ãªãèªåçã«æ¤åºã解æ¾ãã¦ããã ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®æ©è½ãããã ãã®ç¯ã§ã¯ãã®ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®è©³ç´°ã追ã£ã¦ããã ãªãã¸ã§ã¯ãã®ç®¡ç Ruby ã® GC 㯠Ruby ã®ãªãã¸ã§ã¯ãã®ã¿ã対象ã ããã¤ãRuby ã çæã管çãã¦ããã¡ã¢ãªã«ãªãã¨ãããªããéã«è¨ãã¨ã¦ã¼ã¶ãåæã« å²ããã¦ãã¡ã¢ãªã¾ã§ã¯é¢åãã¿ã¦ãããªãã¨ãããã¨ã ããã¨ã㰠以ä¸ã®é¢æ°ã¯ã¡ã¢ãªãªã¼ã¯ãèµ·ããã void koreha_dame() { malloc(1024); /* ã¡ã¢ãªãããã£ã¦ã¯æ¨ã¦ã */ } ä¸æ¹ã§ä»¥ä¸ã®é¢æ°ã¯ã¡ã¢ãªãªã¼ã¯ãèµ·ãããªãã void daijoubu() { rb_ary_new(); /* Ruby ã®é åãä½ã£ã¦ã¯æ¨ã¦ã */ } Ruby ã®ãªãã¸ã§ã¯ãã¯ããããã« struct RVALUE ã ã£ãããããªã ã¸ã§ã¯ãã®ç®¡ç
{{#tags}}- {{label}}
{{/tags}}