[Tutor] functions and memory

Sean 'Shaleh' Perry shalehperry@attbi.com
Sat, 16 Mar 2002 13:31:03 -0800 (PST)


On 16-Mar-2002 Cameron Stoner wrote:
> When a function is done being used do the values for the variables in that
> function stay in memory?
> 
> Cameron Stoner

Any object is marked for cleanup as soon as it leaves scope.  So when a
function ends all local variables are marked as unused and will be garbage
collected.