const main args?

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Aug 12 15:51:25 PDT 2011


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)
    {
    }
}


More information about the Digitalmars-d-learn mailing list