Upcoming Events
Southwest Gaming Expo
11/20 - 11/22 @ Dallas, TX

Workshop on Network and Systems Support for Games (NetGames 2009)
11/23 - 11/25 @ Paris, France

ICIDS 2009 Interactive Storytelling
12/9 - 12/11 @ Guimarăes, Portugal

Global Game Jam
1/29 - 1/31  

More events...


Quick Stats
6920 people currently visiting GDNet.
2341 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



Link to us

Link to us

  Intel sponsors gamedev.net search:   

A Postmortem of Game Programming with Digital Mars’ D Programming Language


Installing

Google is everyone’s best friend. “D Programming Language Download” drops you to a page with all the downloads. I was running Windows XP Pro in the hotel room, so I grabbed DMC.ZIP and DMD.ZIP. (The Linux people will want to grab the DMD.ZIP for Linux and must have GCC lying around. Presumably you’ll know where to find that. ) You might also want to find CandyDoc because it’s pretty.

It’s a quick download, which is nice because I’m on dialup at home.

I initially wanted to run the programs from the desktop, so that I could easily clean everything off when I left the hotel. That didn’t work out in the brief time I spent fighting, but the following files seem to be important if you want to bash D into running from a non-root location: DMD\bin\sc.ini and DMD\source\d\all.sh. There’s probably more to it, but I gave up. At least some of the tools don’t handle file paths with spaces in them.

I still didn’t want several folders littering my C: root, so I extracted the DMD.zip into c:\DMD and the DMC.ZIP into c:\DMD\DMC. This required modifying the LINKCMD in DMD\BIN\SC.INI to reflect the moved DMC folder. (On a second attempt at home, I extracted everything into c:\dmd\... \bin, \src, \include. You have to update sc.ini again to reflect D's settings, but it worked.)

I created a projects folder under c:\dmd\projects.



Getting work done


Contents
  Prologue
  Installing
  Getting work done
  My experiences
  Beginning work: Dir2
  DERELICT game library
  Various Notes on D
  Wrapup

  Source code
  Printable version
  Discuss this article