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

Walter Bright newshound2 at digitalmars.com
Sat Nov 19 01:28:58 UTC 2022


On 11/18/2022 2:03 PM, Nick Treleaven wrote:
> 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.

Ok. Resolved.


More information about the Digitalmars-d mailing list