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

Changes between Version 3 and Version 4 of CommentsExample

Show
Ignore:
Author:
csauls (IP: 69.166.134.113)
Timestamp:
01/03/06 05:24:31 (15 years ago)
Comment:

Goodbye, "Source."

Legend:

Unmodified
Added
Removed
Modified
  • CommentsExample

    v3 v4  
    4343 
    4444/*    
    45     This is another block (or multiline) comment.   
     45  This is another block (or multiline) comment.   
    4646*/ 
    4747 
    48 int main()   
    49 {  
    50      /* The main function is where the action starts in D. */ 
     48int main() { 
     49  /* The main function is where the action starts in D. */ 
     50     
     51  writefln("This program is documented."); // This statement prints some text... 
     52         
     53  // This is a single line comment.  It automatically ends at the end of the line. 
    5154 
    52      
    53     writefln("This program is documented."); // This statement prints some text... 
    54          
    55     // This is a single line comment.  It automatically ends at the end of the line. 
     55  return /* 0 is an int */ 0; 
    5656 
    57     return /* 0 is an int */ 0; 
    58  
    59     /*  
    60         since main is supposed to return an int ("integer"),  
    61         the above statement is required...  
    62     */  
     57  /*  
     58    since main is supposed to return an int ("integer"),  
     59    the above statement is required...  
     60  */  
    6361} 
    6462}}} 
    65  
    66 == Source == 
    67  
    68 || Posted by || csauls || 
    69 || Date/Time || Mon Jan 2, 2006 4:14 am ||