| 1 | = It Compiles = |
---|
| 2 | |
---|
| 3 | ''Part of'' TutorialFundamentals |
---|
| 4 | |
---|
| 5 | == Description == |
---|
| 6 | |
---|
| 7 | It doesn't actually do anything, but it compiles and runs. |
---|
| 8 | |
---|
| 9 | == Example == |
---|
| 10 | |
---|
| 11 | {{{ |
---|
| 12 | #!d |
---|
| 13 | void main() |
---|
| 14 | { |
---|
| 15 | } |
---|
| 16 | }}} |
---|
| 17 | |
---|
| 18 | == More Information == |
---|
| 19 | Each program in D '''must''' have a ''main'' function somewhere. This program example only contains the ''main'' function. A ''main'' function may return either ''void'' or ''int'', and can accept either no parameters or a single ''string[]'' which supplies the command line arguments to the program. |
---|
| 20 | |
---|
| 21 | For a fuller explanation of what this means, visit [http://www.wikiservice.at/d/wiki.cgi?D__Tutorial/StartingWithD Wiki4D]. |