You are a newbie, so let me point the little flaws in your D code, this is the D style guide:
http://www.digitalmars.com/d/2.0/dstyle.html
Regarding white space it says:
* Use spaces instead of hardware tabs.
* Each indentation level will be four columns.
Bye,
bearophile