DIPX: Enum Literals / Implicit Selector Expression

Walter Bright newshound2 at digitalmars.com
Fri Jul 1 04:50:39 UTC 2022


On 6/30/2022 2:08 AM, Ogi wrote:
> I was under 
> impression that this is a deliberate (although questionable) design to avoid 
> some bugs rather some technical limitation.

It is deliberate, not a bug. The rationale is the common C practice:

   enum XX { XXabc, XXdef, XXghi };

where the programmer is using a workaround for a scoped name.


More information about the Digitalmars-d mailing list