The X Macro using D

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 21 11:53:31 PDT 2017


On 2017-07-21 14:27, Olivier FAURE wrote:

> Quick questions: isn't it possible to do
>
>      private __gshared const(char)*[24] pseudotab = Y.map!(x => x.id);
>
> instead? That seems like the most obvious and easy to read option; and
> in contrast to the other solutions proposed, it's closer to the Rule of
> Least Power.

Yes, that's basically what my solution is doing [1].

[1] http://forum.dlang.org/post/oksd27$1li9$1@digitalmars.com

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list