From: Lothar Scholz Date: 2005-05-17T04:38:56+09:00 Subject: Re: Doubt about GC Hello Eustaquio, ERdOJ> My doubt is why Car no. 4 is still there, after running gc. There is no ERdOJ> reference to it outside the function, right? So it should not have be ERdOJ> sweeped by GC? Unlikely but the stack marking is conservative. Maybe there is something on the stack that looks like a pointer to Car no.4. In this event Car no.4 will not be deleted. -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's