Upcoming Events
Virtual Worlds Forum Europe 2008
10/6 - 10/8 @ London, United Kingdom

Tokyo Game Show
10/9 - 10/12 @ Tokyo, Japan

IndieCade
10/10 - 10/17 @ Bellevue, WA

Blizzcon
10/10 - 10/11 @ Anaheim, CA

More events...


Quick Stats
3458 people currently visiting GDNet.
2220 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



Link to us

  search:   

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



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

Getting work done

I like using Textpad as my editor with a modified D.syn file. The standard Textpad download D.SYN is missing some keywords. I also opened two cmd windows with the following batch file

@ECHO OFF
SET PATH=%PATH%;"C:\DMD\bin";"C:\DMD\dmc\bin"
CMD ; Run a command line and don't return
(At home, I don't need the c:\dmd\dmc\bin, because I successfully flattened DM-C and DM-D into the same set of directories.)

The batch file was configured to run in c:\dmd\projects.

My first cmd window was used for compiles and my second was used for running my programs. This resulted in some mouse clicking, but left everything open. Both BUD and dmd also have the "execute on successful compile" option, so having just one cmd window works as well. I also opened folder windows to the Phobos standard library source and to the documentation and had Textpad taking up ¾ the screen.

A good test of whether your install worked is to run your command window, then navigate to c:\dmd\samples\d\ and run:

shell all.sh
If it works, D is configured and installed correctly. If it doesn’t, you failed somewhere. It took me a few tries at home and 1-2 tries at the hotel to get things up and going.



My experiences