lua-users home
lua-l archive

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

On Jan 16, 2010, at 10:59 AM, Cosmin Apreutesei wrote:

> As the example shows, lexical binding without without ref. counting
> only covers the cases when the lifetime of objects it's short and it's
> tied to the program flow.

But that's presumably the case you are looking for if you want something based off of in-do-end. Everything else is going to have to be based on when the runtime can decide that the object is no longer accessible and there is no way to tell that immediately in the general case. If there were, we wouldn't need an __immediage_gc hook because the __gc hook would be sufficient.