Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector
Benjamin Thaut
code at benjamin-thaut.de
Thu Jan 9 06:51:53 PST 2014
Am 09.01.2014 15:28, schrieb "Ola Fosheim Grøstad"
<ola.fosheim.grostad+dlang at gmail.com>":
> And, if it isn't in D already I would very much like to have a weak
> pointer type that will be set to null if the object is only pointed to
> by weak pointers.
>
> It is a PITA to have objects die and get them out of a bunch of
> event-queues etc.
Didn't phobos get such a weak pointer type lately? I at least saw a
implementation on the newsgroup very recently.
It used core.memory.setAttr to store information in objects. Then you
can overwrite the collectHandler in core.runtime to null the weak
references up destruction.
--
Kind Regards
Benjamin Thaut
More information about the Digitalmars-d
mailing list