WeakRef

Bill Baxter dnewsgroup at billbaxter.com
Mon Jan 21 15:55:15 PST 2008


Bill Baxter wrote:
> Is this a good way to make a weak reference to an object?
> Am I missing anything?  The little unittest seems to work.
> 
> It would be nice if something like this were in the standard library so 
> I wouldn't have to worry about using the undocumented notifyRegister and 
> notifyUnRegister methods.
> 
> --bb

Oh, and that's public domain if anyone wants to use it.

--bb



More information about the Digitalmars-d mailing list