[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: newproxy()
- From: Mark Hamburg <mark@...>
- Date: Sat, 16 Jan 2010 15:27:54 -0800
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.