Reimplementing the bulk of std.meta iteratively

Timon Gehr timon.gehr at gmx.ch
Sat Sep 26 21:16:38 UTC 2020


On 26.09.20 18:18, Andrei Alexandrescu wrote:
> 
> Most implementations are a few lines long because they get to leverage 
> algorithms as implemented in std. Here's a typical one:
> 
> alias MostDerived(Args...) = dereify!({
>      auto ids = reify!Args;
>      sort!((a, b) => is(dereify!a : dereify!b))(ids);
>      return ids;
> }());

I am pretty sure this one does not work though.


More information about the Digitalmars-d mailing list