Hi,
Can lambda functions or delegates in D to call themselves?
Can I write something like this:

-----
import std.stdio;

void main() {

        auto fact = function (int x) => x * { if (x) fact(x - 1); };

        assert(fact(10) == 3628800);
}

Reply via email to