diff run/opPostDec_09.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/opPostDec_09.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_09;
+
+import std.stdio;
+
+int main() {
+	float x = 9f;
+	writefln(x);
+	writefln(x--);
+	assert(x==8f);
+	return 0;
+}
+