Andrei Alexandrescu Tue, 08 Feb 2011 17:06:08 -0800
https://gist.github.com/817504
I added a D version. Andrei