From: ara howard Date: 2008-01-10T01:13:22+09:00 Subject: Re: why does this code leak? On Jan 9, 2008, at 2:41 AM, Robert Klemme wrote: > 'd say you picked the wrong class for your tests - apparently a > lambda uses an array somehow. This is what I see from the modified > script (attached): hmmm. doing this in irb suggests not: list = [] GC.start; p ObjectSpace.each_object(Array){}; list << lambda{} GC.start; p ObjectSpace.each_object(Array){}; list << lambda{} GC.start; p ObjectSpace.each_object(Array){}; list << lambda{} GC.start; p ObjectSpace.each_object(Array){}; list << lambda{} the number of Array's will remain static. hrrrmmm.... a @ http://codeforpeople.com/ -- share your knowledge. it's a way to achieve immortality. h.h. the 14th dalai lama