Tasks, actors and garbage collection

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Apr 21 08:09:17 UTC 2021


On Wednesday, 21 April 2021 at 06:37:21 UTC, Paulo Pinto wrote:
> On Tuesday, 20 April 2021 at 16:45:38 UTC, russhy wrote:
>> C++ could have went with a GC, they decided to go against and 
>> encourage the use of smart pointers
>>
>> That was smart, actually
>
> Kind of, there are C++/CLI, C++/CX, C++ Builder and what many 
> keep forgeting when talking about game developers and tracing 
> GC, Unreal C++.

Yes, but C++ has had the Boehm collector since the early 90s, 
which is comparable to D's current default collector. There is 
also C++11 N2670 ("Garbage Collection and Reachability-Based Leak 
Detection") that has no compiler support, but actually is in the 
language.

Garbage collection simply isn't widespread in C++ as the main 
allocation strategy, but it is in D. The demographics are 
different.



More information about the Digitalmars-d mailing list