Newbie style question about string constants
Ian
ian at iangarcia.net
Mon Mar 17 14:26:56 UTC 2025
On Monday, 17 March 2025 at 08:27:17 UTC, Jonathan M Davis wrote:
>
> In any case, the normal way in D to declare a string constant
> is to use enum. So, that's primarily what you're going to see
> in most code. Whether you choose to do that in your own code is
> up to you.
>
> - Jonathan M Davis
Hi Jonathan,
That all makes sense. enum it is, with the caveat for
allocations. Just asking.
Thanks,
Ian
More information about the Digitalmars-d-learn
mailing list