On Jan 5, 2007, at 10:46 PM, Mathieu Langlois wrote:

It's actually pretty trivial to implement weak references with a plugin, all
you need to do is return the object without locking it.

This is trivial only because it leaves the hard part of the problem unsolved. When the object reaches the end of its life, all of these fake "weak references" will become dangling references, pointing at an object which no longer exists. Breaking the memory management system like this is not a good idea unless you have too much free time and want to spend it solving tricky bugs.

Mars Saxman
REAL Software

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to