Using Enums to Generate Scoped List of Names

Walter Bright newshound2 at digitalmars.com
Tue Aug 16 19:18:07 UTC 2022


On 8/16/2022 8:34 AM, Ali Çehreli wrote:
> And your array-at-compile-time example can subjectively be better like this:
> 
> import std;
> 
> void main() {
>    pragma(msg, iota(20).map!(n => n * n).array);
> }

True, but my example was a slide-friendly version of a much more complex piece 
of real life code.


More information about the Digitalmars-d mailing list