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
