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

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 15 11:40:28 PDT 2014


On Monday, 15 September 2014 at 18:39:09 UTC, Andrei Alexandrescu
wrote:
> 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

Oops, I was looking at the opSlice for Large, not RCString.


More information about the Digitalmars-d mailing list