Summary: Documentation of the main() Function
           Product: D
           Version: 2.041
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2

--- Comment #0 from 2010-03-19 03:56:49 PDT ---
According to the documentation, main() must be declared using one of the
following forms:
void main() { ... }
void main(char[][] args) { ... }
int main() { ... }
int main(char[][] args) { ... }

However with the latest D2 compiler I can write:
import std.stdio;

void main (string[] args) {
  writeln("main with string[]");

Actually I think that it is pretty good to be able to have main() with
string[]. Bearophile on the forums even suggest:
In practice in D2 you can even use main(immutable string[] args), that I think
is the best form

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to