More Intuitive Syntax for Manifest (enum) Constants

Kagamin spam at here.lot
Mon Nov 24 15:46:28 UTC 2025


On Sunday, 23 November 2025 at 07:15:27 UTC, Walter Bright wrote:
> D isn't consistent with what would work best for a computer, 
> either, which is why it is converted to "intermediate code" by 
> the front end. There are a lot of inconsistencies, but they 
> work for humans.

Most manifest constants are indeed enums. The poster you reply to 
is known to have outlandish reasoning. In C# enums are strongly 
typed, which greatly hurts interoperability, as a result 
interoperable enums are better declared as integer or string 
constants.


More information about the Digitalmars-d mailing list