DIP 1019--Named Arguments Lite--Final Review

Walter Bright newshound2 at digitalmars.com
Sat Aug 24 06:17:07 UTC 2019


On 8/23/2019 10:00 PM, a11e99z wrote:
> so which one should be called in sample below?
> 
> import std.stdio;
> void foo(int a, int b) {writeln("0");}
> void foo(int b, double a) {writeln("1");}
> void main()
> {
>      foo(b: 10, 0);
> }

According to my suggestion, "1" is unambiguously selected.

https://digitalmars.com/d/archives/digitalmars/D/DIP_1019--Named_Arguments_Lite--Community_Review_Round_2_327714.html#N327755


More information about the Digitalmars-d mailing list