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

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 15 06:38:56 PDT 2014


On Monday, 15 September 2014 at 13:15:28 UTC, Marc Schütz wrote:
>> - Does not provide Forward range iteration that I can find. 
>> This makes it unuseable for algorithms:
>>    find (myRCString, "hello"); //Nope
>> Also, adding "save" to make it forward might not be a good 
>> idea, since it would also mean it becomes an RA range (which 
>> it isn't).
>
> No, RA is not implied by forward.

Right, but RCString already has the RA primitives (and 
hasLength), it's only missing ForwardRange traits to *also* 
become RandomAccess.


More information about the Digitalmars-d mailing list