Number of references to a Class Object

Simon Buerger krox at gmx.net
Sat Feb 12 03:36:40 PST 2011


On 12.02.2011 11:47, bearophile wrote:
> d coder:
>
>> Is there a way fro the users like myself to vote up an issue on DMD Bugzilla.
>
> In this case I think voting is not so useful. I think that actually implementing weak references is better (and later they may be added to Phobos). It requires some work and knowledge of D and its GC. rebindable() may be used as a starting point to copy from...
>
> Bye,
> bearophile

Also tango (for D 1.0) implements it.
Link: 
http://www.dsource.org/projects/tango/docs/current/tango.core.WeakRef.html

Might be worth a look if you are going to implement it for D 2.0.

- Krox


More information about the Digitalmars-d-learn mailing list