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`).

Attachment: signature.asc
Description: PGP signature

Reply via email to