D Thread

Da Andreabont's Wiki.
import std.stdio;
import core.thread;

class DerivedThread : Thread
{
    this()
    {
        super(&run);
    }

private:
    void run()
    {
        writeln("THREAD OBJ");
    }
}

void threadFunc()
{
        writeln("THREAD FUNC");
}


void main() {
        auto derived = new DerivedThread().start();
        auto composed = new Thread(&threadFunc).start();
}