annotate run/opPostInc_10.d @ 451:b35781291678
x++ / ++x / --x / x--
Stewart Gordon <smjg_1998@yahoo.com>
2005-04-18
news:d402bj$nc0$6@digitaldaemon.com
author |
thomask |
date |
Tue, 19 Apr 2005 04:05:27 +0000 |
parents |
|
children |
8c1ae5dd51b0 |
rev |
line source |
451
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
|
|
6 // @date@ 2005-04-18
|
|
7 // @uri@ news:d402bj$nc0$6@digitaldaemon.com
|
|
8
|
|
9 // @WARNING@ direct use of Phobos
|
|
10
|
|
11 module dstress.run.opPostInc_10;
|
|
12
|
|
13 import std.stdio;
|
|
14
|
|
15 int main() {
|
|
16 double x = 9;
|
|
17 writefln(x);
|
|
18 writefln(x++);
|
|
19 assert(x==10);
|
|
20 return 0;
|
|
21 }
|
|
22
|