Changes between Version 2 and Version 3 of IfElseExample/D2
- Timestamp:
- 09/03/10 23:09:37 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IfElseExample/D2
v2 v3 34 34 In 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. 35 35 36 To find out the initializer for other types, you may use the write /writef functionslike so:36 To find out the initializer for other types, you may use the write function like so: 37 37 38 38 {{{