[OT] Stupid programmer tricks (or "Fun with RDMD")

Nick Sabalausky a at a.a
Tue Aug 17 16:25:33 PDT 2010


$ cat hello.d
import std.stdio;
void main()
{
    writeln("Hello world");
}

$ cat rdmdhello.d
import std.process;
void main()
{
    system("rdmd hello.d");
}

$ cat rdmd.d
[rdmd's source here]

$ rdmd rdmd.d rdmd.d rdmdhello.d
Hello world

$ Wheee!
Wheee!: command not found




More information about the Digitalmars-d mailing list