Using Enums to Generate Scoped List of Names

Ali Çehreli acehreli at yahoo.com
Tue Aug 16 15:34:30 UTC 2022


On 8/16/22 08:07, Walter Bright wrote:

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

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);
}

Ali


More information about the Digitalmars-d mailing list