Video: Generic Programming Galore using D @ Strange Loop 2011
Ali Çehreli
acehreli at yahoo.com
Mon Apr 16 11:29:30 PDT 2012
On 04/11/2012 11:28 PM, Jacob Carlborg wrote:
> On 2012-04-11 18:23, Andrei Alexandrescu wrote:
>> http://www.infoq.com/presentations/Generic-Programming-Galore-Using-D
>>
>> Andrei
>
> Nice talk. I noted a minor error in the slides. On several occasions you
> check for the "<" operator but then uses the ">" operator in the actual
> body of the function/template.
>
I have noticed that too but technically it is correct because if <
compiles in D, > will compile too. (They are both backed by the same
opCmp()).
But I agree that it should have been the > operator in the template
constraint for at least for simplicity.
Ali
More information about the Digitalmars-d-announce
mailing list