comparison tests/code/basic_types_2.d @ 206:d3c148ca429b

Major moving of files. all src now goes into src, all docs in docs.
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 18:14:56 +0200
parents
children
comparison
equal deleted inserted replaced
205:8387cbaa85ab 206:d3c148ca429b
1 int main()
2 {
3 byte a = 2;
4 short b = 3 * a;
5 int c = b + a;
6 long d = c * a / b;
7
8 d = itol(2);
9 d = itol(a);
10 d = itol(b);
11 d = itol(c);
12
13 c = stoi(a);
14 c = stoi(b);
15
16 return 3;
17 }
18
19 long itol(int x) { return x; }
20 int stoi(short x) { return x; }
21