The X Macro using D

Olivier FAURE via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 21 05:39:30 PDT 2017


On Friday, 21 July 2017 at 12:27:35 UTC, Olivier FAURE wrote:
>
>     private __gshared const(char)*[24] pseudotab = Y.map!(x => 
> x.id);
>

I meant

      private __gshared static immutable string[Y.length] 
pseudotab = Y.map!(x => x.id);

but you get my point.

Also, upon trying it, it doesn't seem to work (at least the 
immutable part doesn't), but I don't really understand why. All 
the variables in the expression are known at compile time.


More information about the Digitalmars-d mailing list