Given: void main () { system("rdmd prog_one.d"); //... output from prog_one system("rdmd prog_two.d"); //... output again from prog_one and new output from prog_two. } Any suggestions for getting rid of the ghost of prog_one?