DIP74: Reference Counted Class Objects

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 26 16:58:36 PST 2015


On Fri, 27 Feb 2015 00:36:41 +0000, deadalnix wrote:

> On Friday, 27 February 2015 at 00:12:32 UTC, Andrei Alexandrescu wrote:
>>> Well, RefCounted could use compile time reflexion to do so.
>>> Even better,
>>> we could define a lvalue property for RefCounted to use a counter so
>>> we can do intrusive counting in both classes and structs.
>>
>> No, see below how typechecking is more strict for RCOs. --
>> Andrei
> 
> That is simply a rhetoric way to not admit failure of DIP25 and DIP69.

this stinks in the same way as DIP25 stinks. right here: "Attention must 
be paid to annotate all functions returning references to owned data with 
return." this single thing will bring enormous pile of bugs. i want to 
have $1 each time someone will be hit by the bug "oh, i forgot to put 
`return` there!", so i can drop my work and do nothing 'till the end of 
my life.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150227/d3d1c3b4/attachment-0001.sig>


More information about the Digitalmars-d mailing list