DIP1044---"Enum Type Inference"---Formal Assessment

Ogi ogion.art at gmail.com
Wed Apr 26 08:47:11 UTC 2023


On Wednesday, 26 April 2023 at 01:39:14 UTC, Walter Bright wrote:
> That only does a subset of the proposal. The inference only 
> works in specific cases. Things like function overloading are 
> not addressed.

Should we remove struct initializers as well?

```D
struct S { int x; }
void fun(S) {}

fun({42}); // Error
```


More information about the Digitalmars-d-announce mailing list