www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14228] New: Function argument evaluation spec is inconsistent


          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 puremagic.com
          Reporter: briancschott 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?

Feb 26 2015