[Issue 8452] if lambda function can be template?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 26 08:28:42 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=8452
--- Comment #2 from galaxylang <galaxylang at gmail.com> ---
as you can see
auto lam3 =(x,y)=>x+y;
lam3(1,2)
lam3 like a named variable,but it really don't save anything,just some info can
be deduced from complier,so it's just a alias
alias lam3 =(x,y)=>x+y;
lam3(1,2)
so,i want to say,it's possible ,the key word
alias == auto
--
More information about the Digitalmars-d-bugs
mailing list