Order of evaluation for named arguments

Patrick Schluter Patrick.Schluter at bbox.fr
Tue Apr 1 17:13:45 UTC 2025


On Tuesday, 1 April 2025 at 11:26:34 UTC, claptrap wrote:
> On Tuesday, 1 April 2025 at 02:04:44 UTC, monkyyy wrote:
>> On Monday, 31 March 2025 at 23:16:57 UTC, claptrap wrote:
>>> On Monday, 31 March 2025 at 21:43:07 UTC, Salih Dincer wrote:
>>>> [...]
>>>
>>> Or just require that parameters are always passed in the same 
>>> order as the declaration. Makes this bug impossible, and no 
>>> *silent* breakage.
>>
>> Doesnt that make the whole thing meaningless
>
> I thought the point was to document at call site, ie clarify 
> long parameter lists, and enable skipping defaults?
>
> I mean I don't see the point of just being able to change the 
> order the parameters are passed in?

It can happen that you change the order of parameter at the 
definition site. This should not require modiying all call sites 
with named arguments.


More information about the Digitalmars-d mailing list