[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Weak keyed tables with primitive keys
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 21 Oct 2009 18:30:08 -0200
> The above seems like a memory leak, as 'cache[ aPath ] = aContent' will
> hold everything forever.
> Thoughts?
It is curious why nodoby is concerned with similar things happening
with numerical keys. If aPath is a number, you have exactly the same
situation. Should Lua wait until the number is collected to remove that
entry from the table?
-- Roberto