make (a < b < c) illegal?

Derek Parnell derek at nomail.afraid.org
Wed Feb 7 21:36:47 PST 2007


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.
 
> Expanding this to multiple arguments is also quite simple, but left as 
> an exercise. :o)

Okay, I'll give it a go, but I'm not confident. 

I'd have a go at updating the docs but *Doc* changes are even harder to get
accepted than phobos changes <G>

Walter, would it be too hard to make the documentation source available
too? I'm not talking about the embedded phobos docs but all the other
stuff. e.g. The source that generates the "template.html".


-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Justice for David Hicks!"
8/02/2007 4:29:42 PM



More information about the Digitalmars-d mailing list