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

Nick Sabalausky a at a.a
Tue Aug 17 17:47:35 PDT 2010


"Ellery Newcomer" <ellery-newcomer at utulsa.edu> wrote in message 
news:i4f8in$2a42$1 at digitalmars.com...
> What? No infinite loop? Your [lack of] stupidity disappoints me.

Oops! Good catch! I'm so embarrased by my oversight. Here you go:

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

$ rdmd rdmdFOREVER.d
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
[snipped]




More information about the Digitalmars-d mailing list