DIP74: Reference Counted Class Objects

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 26 17:43:21 PST 2015


On Thu, 26 Feb 2015 17:37:46 -0800, H. S. Teoh via Digitalmars-d wrote:

> On Fri, Feb 27, 2015 at 12:59:38AM +0000, ketmar via Digitalmars-d
> wrote:
>> On Thu, 26 Feb 2015 13:50:55 -0800, Andrei Alexandrescu wrote:
>> 
>> > http://wiki.dlang.org/DIP74 got to reviewable form. Please destroy
>> > and discuss.
>> > 
>> > Thanks,
>> > 
>> > Andrei
>> 
>> 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.
> [...]
> 
> Wait, are you saying that forgetting the 'return' annotation will still
> compile without any warning?? Wow, that's ... not nice. :-(

yep. this is the case for DIP25 too (see RCArray sample: it compiles 
perfectly fine without `return`).
-------------- 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/ca2eeaa7/attachment.sig>


More information about the Digitalmars-d mailing list