More Intuitive Syntax for Manifest (enum) Constants
Peter C
peterc at gmail.com
Mon Nov 24 22:25:47 UTC 2025
On Monday, 24 November 2025 at 15:46:28 UTC, Kagamin wrote:
>
> In C# enums are strongly typed, which greatly hurts
> interoperability, as a result interoperable enums are better
> declared as integer or string constants.
The claim is partially true but overstated and misleading.
1. The "Strongly Typed" Part (True)
2. The "Hurts Interoperability" Part (Overstated)
3. The Conclusion (Misleading)
For robust, safe interop, C# enums with an explicit underlying
type are the standard, recommended solution.
More information about the Digitalmars-d
mailing list