What's the go with the GC these days?
Jacob Carlborg
doob at me.com
Mon Jan 7 19:31:06 UTC 2019
On 2019-01-06 04:42, Walter Bright wrote:
> > Where's the ARC stuff? What happened to opAddRef/opRelease?
>
> Andrei, Razvan, and I have decided that the most pragmatic way forward
> to support reference counting is to support copy constructors ala C++.
> C++ is clearly successful with this approach, and Andrei/Razvan
> concluded that D's postblit just doesn't cut it. Razvan has a proposal
> for copy constructors, and an implementation PR that has fallen a bit
> behind his latest proposal.
Razvan has confirmed that copy constructors are only for structs [1].
The ARC (opAddRef/opRelease) proposal was for classes as well. So copy
constructors are not a substitute as defined now.
[1] https://forum.dlang.org/post/hqqszotxfwauczupjmez@forum.dlang.org
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list