[Issue 3577] New: Wrong precedence for opPow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 5 07:40:19 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3577
Summary: Wrong precedence for opPow
Product: D
Version: future
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2009-12-05 07:40:18 PST ---
opPow does not follow mathematically correct precendence.
import std.stdio;
void main() {
writeln( 2 * 2.0L ^^ 3 + 1); // 65
writeln( 2.0L ^^ 3 * 2 + 1); // 17
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list