Discussion Thread: DIP 1037--Add Unary Operator ...--Community Review Round 1

Jacob Carlborg doob at me.com
Wed Oct 28 10:57:37 UTC 2020


On Tuesday, 27 October 2020 at 10:54:07 UTC, Mike Parker wrote:
> This is the discussion thread for the first round of Community 
> Review of DIP 1037, "Add Unary Operator ...":
>
> https://github.com/dlang/DIPs/blob/ba81eec84ddf0aeeb2cb652743b292455ec8c62a/DIPs/DIP1037.md

Is there a risk of causing some form of ambiguity with variadic 
functions? For example:

void a(int[] a ...);
void b(int[]...);
void c(int...);

alias A = AliasSeq!(int);
void d(A...);

I didn't know `c` was legal, but apparently it is (and therefor 
`d` as well).

--
/Jacob Carlborg




More information about the Digitalmars-d mailing list