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

"Nordlöw" via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 20 12:29:16 PDT 2014


On Saturday, 20 September 2014 at 16:57:49 UTC, Andrei 
Alexandrescu wrote:
> Thanks!

Calling writeln(rcstring) in a module other than rcstring.d

gives

immutable(RCXString!(immutable(char), 23LU, realloc))(#{overlap 
large, small, msmall}, '\b', [10280751412894535920, 0, 
576460752303423488])

I believe you have to make either opSlice public or add a public 
toString.


More information about the Digitalmars-d mailing list