yamirubykaigiéè¬ãããã¹ã©ã¤ããå ¬éãã¦ãããã åç°ã®ç(Garbage Collection) View more presentations from authorNari leakyã¯ä»¥ä¸ã®URLãããã¦ã³ãã¼ãã§ããã authorNari/ruby at leaky - GitHub â»ãã ããminirubyã¾ã§ããä½ããªãã®ã§æ³¨æã ã ã¿ãªããã馴æã¿ã®hell world.rbãæ¸ãã p a = "welcome! hell world!" a.free ããããHell worldã¸ã finalizeãããå®è¡ a = 'a' proc = Proc.new{ p (a = 'do_finalize'); a.free } ObjectSpace.define_finalizer(a, aProc=proc) a.free # => 'do_final
{{#tags}}- {{label}}
{{/tags}}