Feedback Thread: DIP 1044--Enum Type Inference--Community Review Round 1

Nick Treleaven nick at geany.org
Fri Nov 18 22:03:25 UTC 2022


On Friday, 18 November 2022 at 21:29:15 UTC, Walter Bright wrote:
> The following is not addressed:
>
>     enum E { e };
>     int e;
>     auto x = e;  // which e?

The int, the dip requires $e for the enum member.

>     void bahb(int);
>     void bahb(E);
>     bahb(e);  // which bahb?

Same.


More information about the Digitalmars-d mailing list