On 02/03/2013 04:04 PM, Steven Schveighoffer wrote:
On Sun, 03 Feb 2013 08:04:10 -0500, Timon Gehr <[email protected]> wrote:T delegate() f = &a.prop -> auto f = ()=>a.prop; T delegate(T) f = &a.prop -> auto f = (T x)=>a.prop=x;I don't like this solution. You are creating a dummy delegate function, and moving the stack frame into the heap, just so you can get a delegate to an already existing function. -Steve
The spec could be updated to allow/mandate eta-reduction where applicable.
