Syntax sugar for {} with structs

Nick Treleaven nick at geany.org
Sat Jul 2 15:00:41 UTC 2022


On Saturday, 2 July 2022 at 13:59:39 UTC, Ola Fosheim Grøstad 
wrote:
> if D wants to do this then the compiler should type {} as a 
> parameter list.

A parameter list of zero parameters?

```d
struct S{}

void f();
void f(S s);

f({}); // which gets called?
```


More information about the Digitalmars-d mailing list