make (a < b < c) illegal?
Andrei Alexandrescu (See Website For Email)
SeeWebsiteForEmail at erdani.org
Wed Feb 7 21:46:53 PST 2007
Derek Parnell wrote:
> On Wed, 07 Feb 2007 19:51:06 -0800, Andrei Alexandrescu (See Website For
> Email) wrote:
>
>
>> It's really simple:
>>
>> bool ordered(T, U, V)(T a, U b, V c)
>> {
>> return a < b && b < c;
>> }
>
> Thanks. It wasn't clear to me in the docs how this would be achieved. I've
> read the template docs many times and it still doesn't make much clear.
A tutorial for template code would indeed be great. A lil bird told me
the mythical "The D Programming Language" book will definitely include
one :o).
Andrei
More information about the Digitalmars-d
mailing list