Escaping the Tyranny of the GC: std.rcstring, first blood
Dmitry Olshansky via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 24 03:31:15 PDT 2014
23-Sep-2014 19:13, Andrei Alexandrescu пишет:
> On 9/23/14, 12:17 AM, Dmitry Olshansky wrote:
>> In my imagination it would be along the lines of
>> @ARC
>> struct MyCountedStuff{ void opInc(); void opDec(); }
>
> So that would be a pointer type or a value type? Is there copy on write
> somewhere? -- Andrei
It would be an intrusively counted type with pointer somewhere in the
body. To put it simply MyCountedStuff is a kind of smart pointer.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list