What's the go with the GC these days?
Manu
turkeyman at gmail.com
Sun Jan 6 09:42:18 UTC 2019
On Sun, Jan 6, 2019 at 1:25 AM Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> 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.
Why did opInc/opDec fail? It was never available in any experimental
form, I was never able to try it out. I've been waiting eagerly for
almost a decade...
More information about the Digitalmars-d
mailing list