From: Ryan Davis Date: 2012-01-27T04:23:30+09:00 Subject: Re: Garbage collection On Jan 26, 2012, at 8:04, Hector Quiroz wrote: > MMR.new.initHeader(['id', 'name', 'cap']) > # The above line instanciates an MMR object and initializes @@header. > # My question is, since I don't have a variable pointing to this newly > # instantiated MMR object, can it be removed by the garbage collector? > # Is this dangerous? It is assigning a class var, so you do have an active reference to it: the MMR class. Unless you make the class get collected (hard to do), it is safe for the span of your program's run.