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/D2

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

--

Legend:

Unmodified
Added
Removed
Modified
  • ItCompilesExample/D2

    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 
     18== More Information == 
     19Each 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 
     21For a fuller explanation of what this means, visit [http://www.wikiservice.at/d/wiki.cgi?D__Tutorial/StartingWithD Wiki4D].