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

Timon Gehr timon.gehr at gmx.ch
Fri Nov 18 22:59:14 UTC 2022


On 18.11.22 20:33, H. S. Teoh wrote:
> 
> Here's my proposal: use `.` instead of `$`, and if .identifier is
> ambiguous in any way at all, prohibit ITE and require spelling out the
> enum in full. I.e., prohibit it if there's any ambiguity at all with a
> module name, any global identifier, or it can be a member of multiple
> enums currently in scope.

Well, what if you _wanted_ to access the module-scope variable? I guess 
there are workarounds, but this still seems a bit messy. Probably still 
better than using $identifier though.


More information about the Digitalmars-d mailing list