Order of evaluation for named arguments

Walter Bright newshound2 at digitalmars.com
Thu Apr 10 06:57:22 UTC 2025


On 4/3/2025 1:31 PM, Timon Gehr wrote:
> AFAIU both my frontend and SDC went with strict source-order evaluation. That 
> seems like the only sensible generalization of left-to-right function argument 
> evaluation, but perhaps common sense is not so common after all.

The spec is silent about how named arguments for functions and for struct 
literals affect order of evaluation.

I can well understand you being highly annoyed after having written an 
implementation in good faith.


More information about the Digitalmars-d mailing list