DIPX: Enum Literals / Implicit Selector Expression

user1234 user1234 at 12.de
Fri Jul 1 10:49:46 UTC 2022


On Friday, 1 July 2022 at 09:02:12 UTC, Ola Fosheim Grøstad wrote:
> C and D don't have an enumeration type. `enum class` gave C++ a 
> somewhat type safe enumeration type. It is very useful.

Absolutely. This is why we can write this insanity:

```d
enum E {absolutely}
const a = 
E.absolutely.absolutely.absolutely.absolutely.absolutely;
```


More information about the Digitalmars-d mailing list