Order of evaluation for named arguments
Salih Dincer
salihdb at hotmail.com
Mon Apr 7 21:32:55 UTC 2025
On Saturday, 5 April 2025 at 20:18:28 UTC, Dukc wrote:
> ...
> However, I don't think changing the behaviour is wrong either.
> Anyone who was relying on this certainly knew or should have
> known that s/he is on thin ice. Of course it's unfortunate that
> we end accidentally end up using implementation-defined
> features every now and then, but the language can't improve if
> we let that stop us from changing it. Especially in this case,
> since it's an young feature that is unlikely to be used that
> much yet.
> ...
Let's adapt the necessary correction to the compiler. Even this
update will cause a lot of code not to compile:
https://dlang.org/changelog/2.111.0.html#dmd.auto-ref-put-adjacent
There may also be a warning message (deprecated?) with the update
to be made.
SDB at 79
More information about the Digitalmars-d
mailing list