RC buffer

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 2 15:00:58 PDT 2016


On 11/02/2016 01:00 AM, Andrei Alexandrescu wrote:
> In order to make opAssign safe, a language change will be necessary.

Take that back, no need for a language change as long as nobody returns 
references to refcounted memory.

Just pushed a commit to add @safe-ty annotations everywhere. Works as 
advertised! So now we have a buffer of ubyte that is reference counted, 
safe, and supports qualifiers properly (no shared yet).

https://github.com/dlang/phobos/pull/4878


Andrei




More information about the Digitalmars-d mailing list