const main args?

bearophile bearophileHUGS at lycos.com
Fri Aug 12 13:16:45 PDT 2011


Currently the accepted signatures for the D main are (it also works if you use "pure main"):

void main();
int main();
void main(string[] args);
int main(string[] args);

But why instead isn't the args argument const when present?
int main(in string[] args);

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list