lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


1. Lua objects are collected in the order exactly reverse to the order of their creation.
2. In weak tables with both keys and values being weak a key gets collected prior to its value or in reverse but always the same way regardless of their object types. 

Alex

 -----Original Message-----
From: 	Roberto Ierusalimschy [mailto:roberto@inf.puc-rio.br] 
Sent:	Wednesday, May 07, 2003 12:34 PM
To:	Multiple recipients of list
Subject:	Re: GC order 

> For the moment I make no assumptions on the order at which objects and
> key/value s are destroyed, but, I wish I could make one:)

What assumptions do you wish?

-- Roberto