On Thu, 29 Jan 2015 04:54:38 +0000, Jesse Phillips wrote: > A recent discussion over in digitalmars.D > http://forum.dlang.org/post/rtwbtxigfeupvykpb...@forum.dlang.org > > talks about accepting @return... Here is an example from the PR: > https://github.com/D-Programming-Language/dmd/ compare/366422338ece...6b86b12f79e8 > > struct At { > @property auto info() @safe @nothrow @pure @return const { > return this; } > > @pure @nothrow @return ref int info2(ref int x) { return x; } > } > > Which I assume before the change would be: > > struct At { > @property auto info() @safe nothrow pure return const { return > this; } > > pure nothrow return ref int info2(ref int x) { return x; } > } > > I don't know about anyone else, but this doesn't compile in 2.066.
http://wiki.dlang.org/DIP25 this is a very recent thing, it wasn't coded when 2.066 was released.
signature.asc
Description: PGP signature