Escaping the Tyranny of the GC: std.rcstring, first blood

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 15 11:39:50 PDT 2014


On 9/15/14, 11:21 AM, Sean Kelly wrote:
> On Monday, 15 September 2014 at 02:26:19 UTC, Andrei Alexandrescu
> wrote:
>>
>> The road there is long, but it starts with the proverbial first step.
>> As it were, I have a rough draft of a almost-drop-in replacement of
>> string (aka immutable(char)[]). Destroy with maximum prejudice:
>>
>> http://dpaste.dzfl.pl/817283c163f5
>
> So slicing an RCString doesn't increment its refcount?

It does. -- Andrei



More information about the Digitalmars-d mailing list