diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/opPreDec_07.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.opPreInc_07;
+
+import std.stdio;
+
+int main() {
+	long x = 9l;
+	writefln(x);
+	writefln(--x);
+	assert(x==8l);
+	return 0;
+}
+