Should aliasing a lambda expression be allowed?

Steven Schveighoffer schveiguy at yahoo.com
Wed Nov 15 19:29:29 UTC 2017


On 11/15/17 11:59 AM, Andrea Fontana wrote:
> On Wednesday, 15 November 2017 at 15:25:06 UTC, Steven Schveighoffer wrote:
>> alias foo = lambda1;
>> alias foo = lambda2;
> 
> What?

Yep. Would never have tried that in a million years before seeing this 
thread :) But it does work. Tested with dmd 2.076.1 and 2.066. So it's 
been there a while.

-Steve


More information about the Digitalmars-d mailing list