Julian Snitow (vangczung / yahoo.com) wrote:
[...]
>  It works, but is this a healthy practice?  I.e., am I keeping these 
>  values from being deallocated until the program terminates, and if so, 
>  is there a better way to ensure that the GC does not cull these 
>  referenced objects while the StatArray instance exists, but to allow 
>  normal garbage collection afterwards?

In addition to what has already been suggested, simply assigning Qnil to
the variable(s) allows the GC to purge anything that is solely
referenced from there without having to worry about ruby internals.

			Reimer Behrends