Name: Anonymous 2012-02-02 9:08
Hey /prog/, why aren't you writing D, God's gift to programmers? Let's get this ball rolling.
import std.stdio;
template factorial(int n)
{
const factorial = n * factorial!(n-1);
}
template factorial(int n : 1)
{
const factorial = 1;
}
void main(string[] argv)
{
writeln(factorial!(10));
}
import std.stdio;
template factorial(int n)
{
const factorial = n * factorial!(n-1);
}
template factorial(int n : 1)
{
const factorial = 1;
}
void main(string[] argv)
{
writeln(factorial!(10));
}