accept @pure @nothrow @return attributes
Joseph Rushton Wakeling via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jan 28 15:19:22 PST 2015
On 29/01/15 00:06, Dicebot via Digitalmars-d wrote:
> I haven't said it is a breaking change on its own - but that doesn't mean it is
> any considerably better migration-wise.
Yea, you're right, this isn't about whether the feature is good or not
(personally, I find Don's case for it persuasive) -- it's about having a
well-signposted procedure for changing the language.
>> BTW what is @return meant to achieve? I realize I'm not familiar with this
>> attribute.
>
> http://wiki.dlang.org/DIP25
Oh, of course. Though it feels a bit weird, the possibility to write,
@safe ref int identity(@return ref int x) { return x; }
More information about the Digitalmars-d
mailing list