Is there a weak pointer or references in D?
Alex Rønne Petersen
alex at lycus.org
Sat Jan 12 21:24:26 PST 2013
On 11-01-2013 19:15, Charles Hixson wrote:
> I was looking for a way to create a weak reference to either a struct or
> a class. I need to be able to use it to automatically generate an
> active reference on access. (I intend to do this by rolling in data
> from a file.)
>
> Any guidance as to where I should look?
https://github.com/lycus/mci/blob/master/src/mci/core/weak.d
It has some caveats (see the comments).
--
Alex Rønne Petersen
alex at alexrp.com / alex at lycus.org
http://lycus.org
More information about the Digitalmars-d-learn
mailing list