November 11, 2005
Walter's 1.06 DMDScript:
global.d on lines 756-768

My "modified" 1.06 DMDScript:
global.d on lines 665-673

Walter declared a Darray and stuffed the arguments provided to Dglobal into that Darray.

However, in his "testscript.d" which is the main() for ds.exe, on line 60-63 it overrides any arguments passed to the main() as -i or -v the moment any other argument is passed, and it then instead stuffs those arguments in as source files for ds (and iteratively executes them in separate contexts)

What needs to be done is to instead stuff those arguments into Dglobal.  The -i acts as a command line "include" and -v acts as "verbose" for the ds.exe.

If you're in a hurry, you may choose to modify this yourself,
but I'm going to be tinkering in testscript.d to make it work
properly.  I suck at D though (I'm natively an asm/C programmer)
so it may take a day or two to get a decent implementation.
If Walter wrote it, it'd probably take him an hour but then I'd have
no fun.  :p


January 16, 2007
OK, I have command line arguments working.

watch for posts here
under "improved testscript.d"
1 2
Next ›   Last »