DIP74: Reference Counted Class Objects

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Feb 28 18:15:34 PST 2015


On 2/28/15 5:43 PM, Manu via Digitalmars-d wrote:
> On 28 February 2015 at 02:00, Andrei Alexandrescu via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> On 2/27/15 7:52 AM, Manu via Digitalmars-d wrote:
>>>
>>> Well this is the case of the highest value to me, and DIP74 offers
>>> nothing?
>>
>>
>> For structs you use postblit and destructors. -- Andrei
>
> That doesn't work now, and I don't see why that would suddenly work under DIP74?

Per DIP25 and RCSlice, you may define a safe struct with reference 
counting that owns resources. -- Andrei




More information about the Digitalmars-d mailing list