Mercurial > projects > dstress
diff run/opPostInc_03.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opPostInc_03.d Tue Apr 19 04:05:27 2005 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon <smjg_1998@yahoo.com> +// @date@ 2005-04-18 +// @uri@ news:d402bj$nc0$6@digitaldaemon.com + +// @WARNING@ direct use of Phobos + +module dstress.run.opPostInc_03; + +import std.stdio; + +int main() { + short x = 9; + writefln(x); + writefln(x++); + assert(x==10); + return 0; +} +