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

Changes between Version 4 and Version 5 of FunctionExample

Show
Ignore:
Author:
nascent (IP: 67.110.217.136)
Timestamp:
05/30/10 20:01:21 (14 years ago)
Comment:

Updated to be version agnostic.

Legend:

Unmodified
Added
Removed
Modified
  • FunctionExample

    v4 v5  
    1919void main() { 
    2020  uint i; 
    21   writefln(i, "\t(initial value)"); 
     21  writefln("%s\t(initial value)", i); 
    2222 
    2323  i = squareIt(3); 
    24   writefln(i, "\t(3 * 3)"); 
     24  writefln("%s\t(3 * 3)", i); 
    2525 
    2626  i = squareIt(4); 
    27   writefln(i, "\t(4 * 4)"); 
     27  writefln("%s\t(4 * 4)", i); 
    2828 
    2929  i = squareIt(5); 
    30   writefln(i, "\t(5 * 5)"); 
     30  writefln("%s\t(5 * 5)", i); 
    3131} 
    3232}}}