September 17, 2016 [Bug 240] New: i++ not working correctly as arg to writeln | ||||
---|---|---|---|---|
| ||||
http://bugzilla.gdcproject.org/show_bug.cgi?id=240 Bug ID: 240 Summary: i++ not working correctly as arg to writeln Product: GDC Version: 5.x Hardware: All OS: All Status: NEW Severity: normal Priority: Normal Component: gdc Assignee: ibuclaw@gdcproject.org Reporter: alex@sunopti.com import std.stdio; void main() { int i = 0; writefln("result = %s,%s",i,i++); } result = 1,0 The expected result and that produced by the online compiler at dlang.org is result = 0,0. -- You are receiving this mail because: You are watching all bug changes. |
Copyright © 1999-2021 by the D Language Foundation