Are there any methods like isDestroyed or isDisposed to detect whether some object is destroyed or not?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 12 23:17:53 PST 2014


On Sat, 13 Dec 2014 07:03:22 +0000
Andrey Derzhavin via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:

p.s. you can emulate "weak links" if this is what you want to have.
i.e. references to object that will not stop GC to collect that object
and which will be auto-nullified if the object was collected. see this
module, for example:

http://repo.or.cz/w/iv.d.git/blob/HEAD:/weakref.d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141213/a6e1288e/attachment.sig>


More information about the Digitalmars-d-learn mailing list