DIP 1019--Named Arguments Lite--Community Review Round 2
Jonathan Marler
johnnymarler at gmail.com
Sun Jun 9 21:01:35 UTC 2019
On Sunday, 9 June 2019 at 19:43:54 UTC, Andrei Alexandrescu wrote:
> On 6/9/19 7:27 AM, aliak wrote:
>> With reorderable, as Walter pointed out, what't the order
>> (parameter-wise or argument-wise).
>
> Lexical order of course.
Lexical order of the definition or the caller?
So far we have 1 for the caller and 1 for the definition. Both
seem to think their choice is the obviously correct one :)
> Patrick Schluter:
> They are in the order of declaration of the
function...There's no reason to evaluate it any other order as
the code generation requires that the caller populates the
registers/stack in the order the function expects.
> Paul Backus:
> Personally, I think the obviously-correct choice is to
evaluate them in lexical order (i.e., order of the call).
More information about the Digitalmars-d
mailing list