Changes between Version 3 and Version 4 of CommentsExample
- Timestamp:
- 01/03/06 05:24:31 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CommentsExample
v3 v4 43 43 44 44 /* 45 45 This is another block (or multiline) comment. 46 46 */ 47 47 48 int main() 49 { 50 /* The main function is where the action starts in D. */ 48 int 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. 51 54 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; 56 56 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 */ 63 61 } 64 62 }}} 65 66 == Source ==67 68 || Posted by || csauls ||69 || Date/Time || Mon Jan 2, 2006 4:14 am ||