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

Reply via email to