Feedback Thread: DIP 1044--Enum Type Inference--Community Review Round 1
Walter Bright
newshound2 at digitalmars.com
Mon Nov 21 17:52:09 UTC 2022
On 11/21/2022 8:31 AM, IchorDev wrote:
> On Friday, 18 November 2022 at 22:02:30 UTC, Walter Bright wrote:
>> Scoping rules are not addressed. For example:
>>
>> enum E { e };
>>
>> void blue()
>> {
>> int e;
>> auto x = e; // which e?
>> }
>
> As with the previous message, this one does not use ETI at all.
> Here's an example with ETI:
> ```d
> E { e }
>
> blue(){
> int e;
> auto x = $e; //E.e
> }
> ```
ok
More information about the Digitalmars-d
mailing list