[OT] new thing I learned for today

jmh530 john.michael.hall at gmail.com
Wed Dec 18 22:02:59 UTC 2019


On Wednesday, 18 December 2019 at 17:41:42 UTC, Steven 
Schveighoffer wrote:
> [snip]
>
> 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

Interesting.


More information about the Digitalmars-d mailing list