Thread overview
[Issue 14228] Function argument evaluation spec is inconsistent
Feb 26, 2015
Johannes Pfau
Dec 17, 2022
Iain Buclaw
February 26, 2015
https://issues.dlang.org/show_bug.cgi?id=14228

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johannespfau@gmail.com

--- Comment #1 from Johannes Pfau <johannespfau@gmail.com> ---
A long standing issue. Function arguments should be LTR. Pull request is available, but blocked as it needs a final decision by Walter or Andrei for the evaluation order of (all kinds of) assign expressions.

Currently blocked PR: https://github.com/D-Programming-Language/dmd/pull/4035

History/Reference:

http://bugzilla.gdcproject.org/show_bug.cgi?id=8

http://forum.dlang.org/thread/bniaxycuguviwfdtojzf@forum.dlang.org

https://github.com/D-Programming-Language/dlang.org/pull/6 https://github.com/D-Programming-Language/dlang.org/pull/669 https://github.com/D-Programming-Language/dmd/pull/4035

https://issues.dlang.org/show_bug.cgi?id=6620


BTW: The spec doesn't really contradict itself:

"_are_ evaluated in an implementation-defined order: ... function arguments"" is what _does_ happen.

"The evaluation order of function arguments is _defined_ to be left to right." is what _should_ happen.

"Note that dmd currently does not comply with left to right evaluation of
function arguments."
explains the difference.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14228

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 15
https://issues.dlang.org/show_bug.cgi?id=14228

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dlang.org/issues/4039

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--