What's the go with the GC these days?
Walter Bright
newshound2 at digitalmars.com
Sun Jan 6 21:25:32 UTC 2019
On 1/6/2019 1:40 AM, Manu wrote:
> It's all irrelevant though, Nobody's asking for multiple pointer types
> in D. All I want from language support for ARC in D, is an opInc/opDec
> function which are called appropriately around assignments, and elided
> appropriately.
It turns out to be fiendishly difficult to automatically elide counter bumps.
> copy ctor's can't offer this functionality.
They can produce a working ref counting solution.
D's will have a couple fundamental advantages over the C++ one:
1. D won't need the locking on the increment, because D has different types for
threaded vs non-threaded.
2. With dip25 and dip1000, D can offer memory safe access to rc object contents.
More information about the Digitalmars-d
mailing list