Windows batch file to compile D code

Iain Staffell staffell at gmail.com
Thu May 3 05:31:32 PDT 2012


Hi all.

I have been trying (quite badly) to get started with D for a 
while.

On my first attempt I gave up before even compiling Hello World, 
because it was too difficult to find out how to even compile a 
program in Windows.  (I know.. I said I was bad at this..)

Second time around I tried harder, and wrote a Windows batch file 
to make compiling and running my code easier.  No messing around 
with PATH variables or things like that, too difficult.

I have been playing around with this for a year or so now, and 
thought it might be useful to someone else trying to learn D.  So 
here is a batch file that will automatically compile and run your 
D code.

If you're interested: save http://wogone.com/code/D2.BAT.TXT to 
your computer, rename to D2.BAT, then run D2 from a command 
prompt for further instructions.

Hope someone finds it useful, and not too buggy!  Any comments or 
improvements are more than welcome.


More information about the Digitalmars-d mailing list