annotate run/opPreDec_07.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
451
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
1 // $HeadURL$
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
2 // $Date$
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
3 // $Author$
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
4
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
6 // @date@ 2005-04-18
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
7 // @uri@ news:d402bj$nc0$6@digitaldaemon.com
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
8
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
9 // @WARNING@ direct use of Phobos
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
10
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
11 module dstress.run.opPreInc_07;
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
12
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
13 import std.stdio;
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
14
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
15 int main() {
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
16 long x = 9l;
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
17 writefln(x);
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
18 writefln(--x);
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
19 assert(x==8l);
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
20 return 0;
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
21 }
b35781291678 x++ / ++x / --x / x--
thomask
parents:
diff changeset
22