Using Enums to Generate Scoped List of Names

Walter Bright newshound2 at digitalmars.com
Tue Aug 16 15:07:58 UTC 2022


On 8/3/2022 8:49 AM, Andrey Zherikov wrote:
> I was looking at Walter's ["Strawberries and Cream" 
> presentation](https://github.com/dlang/dconf.org/blob/master/2022/online/slides/strawberries.pdf) 
> this morning and "Using Enums to Generate Scoped List of Names" section caught 
> me with bad feeling: why do you need to generate code using string mixins if 
> this can be done in more readable way (IMHO). So I played with it a bit and here 
> is my solution:

Haha, this is a nice improvement! Nobody can think of everything, which is why 
these forums are worth while!


More information about the Digitalmars-d mailing list