DIP 1019--Named Arguments Lite--Community Review Round 1
Olivier FAURE
couteaubleu at gmail.com
Thu Feb 28 21:55:50 UTC 2019
On Wednesday, 27 February 2019 at 17:46:24 UTC, Dukc wrote:
> The proposal mentioned that having two @named functions with
> same names and parameter types but different parameter names is
> allowed.
No, it mentions that having two @named prototypes for the same
functions with the same name and parameter types but different
parameters is allowed.
eg: This is forbidden:
@named:
int foo(int x, int y) { return x + y; }
int foo(int w, int z) { return w + z; }
and this is allowed:
@named:
int foo(int x, int y);
int foo(int w, int z) { return y + z; }
The next iteration should probably make that distinction clearer.
More information about the Digitalmars-d
mailing list