Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Let's Code in D

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));
}

Name: Anonymous 2012-02-02 23:42

>>32
Roles are interfaces. D supports interfaces.

>>34
No confusion. I meant what I said. D is designed to be ubiquitous, i.e., designed to be popular and used by a large number of different people with different views on how to write software.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List