That's pretty stupid, of course you want to modify the arguments. Classic example: void main(string[] args) { args.popFront; // get rid of name foreach (arg; args) { } }