Lambda syntax for methods and functions
    bearophile 
    bearophileHUGS at lycos.com
       
    Sun Dec  8 03:23:47 PST 2013
    
    
  
The relative Reddit thread explains another small feature of the 
next C#:
http://www.reddit.com/r/programming/comments/1sbkxl/a_quick_highlight_of_upcoming_c_language_changes/cdwedrh
If I understand that, it's similar to allowing D code like this:
bool foo(out int x) {
     x = 10;
     return true;
}
void main() {
     if (foo(int y))
         y.writeln;
}
Currently in D you have to write:
void main() {
     int y;
     if (foo(y))
         y.writeln;
}
Bye,
bearophile
    
    
More information about the Digitalmars-d
mailing list