More Intuitive Syntax for Manifest (enum) Constants

Walter Bright newshound2 at digitalmars.com
Sat Nov 22 09:02:49 UTC 2025


On 11/22/2025 12:10 AM, Peter C wrote:
> In C#, we'd just do: [ public const int N = 42; ]

```d
enum N = 42;
```

is so much simpler, for the win! Especially when you write a bunch of them.



More information about the Digitalmars-d mailing list