Feedback Thread: DIP 1044--Enum Type Inference--Community Review Round 1
IchorDev
zxinsworld at gmail.com
Mon Nov 21 16:31:37 UTC 2022
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
}
```
More information about the Digitalmars-d
mailing list