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

Changes between Version 2 and Version 3 of IfElseExample/D2

Show
Ignore:
Author:
Andrej08 (IP: 78.2.19.175)
Timestamp:
09/03/10 23:09:37 (11 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IfElseExample/D2

    v2 v3  
    3434In D, all variable declarations that do not have a specific initializer get initialized with the value of their type's .init property. In this case, anInteger is of type '''int''', and is assigned the value of '''int.init''', which is zero.  
    3535 
    36 To find out the initializer for other types, you may use the write/writef functions like so: 
     36To find out the initializer for other types, you may use the write function like so: 
    3737 
    3838{{{