lua-users home
lua-l archive

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

On Oct 21, 2009, at 9:36 PM, Duncan Cross wrote:

I would put the result into its own table and make the cache
weak-valued, not weak-keyed:

   cache[ aPath ] = {value=aContent}

Right. But then it would get garbage collected right away as nothing would have any reference to that wrapper table, no?