WeakRef

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


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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: weakref.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080122/d40479cf/attachment.ksh>


More information about the Digitalmars-d mailing list