[OT] new thing I learned for today

Petar Petar
Wed Dec 18 23:22:10 UTC 2019


On Wednesday, 18 December 2019 at 17:41:42 UTC, Steven 
Schveighoffer wrote:
> On 12/18/19 9:18 AM, jmh530 wrote:
>> [...]
>
> Nope. Not just variadic templates:
>
> assert(AliasSeq!(2, 2).pow == 4);
>
> Not even templates in general:
>
> int foo(int x, int y) { return x + y; }
>
> assert(AliasSeq!(1, 2).foo == 3);
>
> -Steve

I introduce you to a D library I was working on a couple of years 
back:
https://gist.github.com/PetarKirov/a808c94857de84858accfb094c19bf77

;)


More information about the Digitalmars-d mailing list