[Issue 14228] New: Function argument evaluation spec is inconsistent
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Feb 26 14:32:17 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14228
Issue ID: 14228
Summary: Function argument evaluation spec is inconsistent
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/expression.html
OS: All
Status: NEW
Keywords: spec
Severity: normal
Priority: P1
Component: websites
Assignee: nobody at puremagic.com
Reporter: briancschott at gmail.com
The specification at http://dlang.org/expression.html says these things:
"The following binary expressions are evaluated in an implementation-defined
order: ... function arguments"
"The evaluation order of function arguments is defined to be left to right."
"Note that dmd currently does not comply with left to right evaluation of
function arguments."
So, if I'm reading this correctly, the spec doesn't agree with itself, and what
it says doesn't matter anyways because the compiler doesn't implement it?
--
More information about the Digitalmars-d-bugs
mailing list