Re: getting instance pointer in weak ref notify



Hi,

James Henstridge <james daa com au> writes:

> It would be very useful if the instance pointer value was passed as an
> argument to weak ref notify function.  For the simple cases where you just
> want to unref or destroy some other object/structure when the object is
> finalized, the current code is okay.
> 
> But there are many cases where knowing the instance pointer value would be
> very useful.  A fairly common case is where you want to maintain a list or
> hash table of all `live' objects of a particular type. 

yes, this is exactly the reason why I've asked for it too: weak containers.
Let's see if a second call for this changes anyone's mind...


Salut, Sven




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