What's the go with the GC these days?

Walter Bright newshound2 at digitalmars.com
Sun Jan 6 09:22:59 UTC 2019


On 1/5/2019 11:48 PM, Manu wrote:
> Hmnm, that's pretty disappointing... as a C++ user who has been doing
> C++ ref counting for years, I would say that, while maybe it is
> *kinda* successful, it's not at all satisfying, and it's one major
> reason I've been pushing it in D for the last 8-9 years.
> Ref counting in C++ is a sloppy hack. I really just want the compiler
> to emit opInc and opDec appropriately on either sides of a reference
> assignment, and let me take it from there.
> Also, with escape analysis, we can elide such calls very effectively,
> and we can't do that using the C++ strategy.
> 
> I think it's disappointing to embrace C++'s hacky 'solution', we could
> do better.

So far, we've failed at every attempt at it.



More information about the Digitalmars-d mailing list