[OT] new thing I learned for today

Mike Parker aldacron at gmail.com
Wed Dec 18 22:24:05 UTC 2019


On Wednesday, 18 December 2019 at 22:02:59 UTC, jmh530 wrote:
> 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.

Please keep comments in this thread focused on the DIP. I've got 
to read through the whole thread for the summary. OT posts don't 
help. I'm going to start deleting OT posts from this point 
forward.

Thanks!


More information about the Digitalmars-d mailing list