A betterC base

rjframe dlang at ryanjframe.com
Fri Feb 9 02:31:19 UTC 2018


On Thu, 08 Feb 2018 17:08:41 +0000, bachmeier wrote:

> On Thursday, 8 February 2018 at 15:55:09 UTC, JN wrote:
> 
>> Python was also a smashing success, but it doesn't use a garbage
>> collector in it's default implementation (CPython).
> 
> I'm pretty sure CPython uses a mark-and-sweep GC together with reference
> counting.

It does. Originally it was reference-counting only, but they added the 
(generational) GC to clean up cyclic references. Because they do reference 
counting as well, you can disable the GC entirely.

https://docs.python.org/3.6/library/gc.html


More information about the Digitalmars-d mailing list