Maybe D is right about GC after all !
Dgame
r.schuett.1987 at gmail.com
Wed Dec 20 17:10:15 UTC 2017
On Wednesday, 20 December 2017 at 17:05:41 UTC, Tony wrote:
> I have heard with regard to reference counting as is done in
> Python, that if two objects each have a reference to the other,
> that they will never be deleted, even if neither is used
> elsewhere in the program. Garbage collection is not supposed to
> have that issue, although I don't know how a garbage collector
> determines that there usage is just via each other and that
> they can be deleted.
Here's how PHP does it:
http://php.net/manual/de/features.gc.collecting-cycles.php
More information about the Digitalmars-d
mailing list