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

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 27 12:14:54 PDT 2014


On 9/27/14, 2:38 AM, Dmitry Olshansky wrote:
>
> Okay it serves no good for me to make these tiny comments while on the go.
>
> As usual, structs are value types, so this feature can be mis-used, no
> two thoughts abouts it. It may need a bit of improvement in
> user-friendliness, compiler may help there by auto-detecting common misuse.

I still don't understand what "this feature" is after reading your long 
post twice.

So structs are still value types and you replace postblit/destroy with 
calls to opInc/opDec? That's it? How does this enable anything more 
interesting than ctors/dtors?


Andrei



More information about the Digitalmars-d mailing list