From: Sam Kong Date: 2006-08-08T08:13:23+09:00 Subject: Re: An integer's life span? Gregory Brown wrote: > On 8/7/06, Eric Hodel wrote: > >> IIRC an Integer's instance variables are eternal due to various >> implementation details. > > Specifically due to the fact that integers are immediate values in ruby. > (Thus, are never collected) Thank you for the answer. This is good news for my purpose. However, that creates another worry. (1..100000).each {|i|...} Now there are 100000 integers in the memory which won't die. Is it okay? Sam -- Posted via http://www.ruby-forum.com/.