Order of evaluation for named arguments
Walter Bright
newshound2 at digitalmars.com
Sun Mar 30 07:00:19 UTC 2025
On 3/29/2025 4:00 PM, Timon Gehr wrote:
> Fixing the compiler is better. Changing the spec is slightly easier.
I suspect this issue came about because it simply wasn't considered when adding
named parameters, and it just fell out this way.
Changing it, though, can silently break existing code which makes people unhappy.
I suggest changing the spec.
P.S. the reason D has a defined behavior for this is because C/C++ leave it
implementation-defined.
More information about the Digitalmars-d
mailing list