Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes from Version 1 of ItCompilesExample/D1

Show
Ignore:
Author:
Andrej08 (IP: 78.2.19.175)
Timestamp:
09/03/10 22:06:41 (14 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ItCompilesExample/D1

    v0 v1  
     1= It Compiles = 
     2 
     3''Part of'' TutorialFundamentals 
     4 
     5== Description == 
     6 
     7It doesn't actually do anything, but it compiles and runs. 
     8 
     9== Example == 
     10 
     11{{{ 
     12#!d 
     13void main() { 
     14} 
     15}}} 
     16 
     17== More Information == 
     18Each 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 ''char[][]'' which supplies the command line arguments to the program. 
     19 
     20For a fuller explanation of what this means, visit [http://www.wikiservice.at/d/wiki.cgi?D__Tutorial/StartingWithD Wiki4D].