make (a < b < c) illegal?

Kirk McDonald kirklin.mcdonald at gmail.com
Wed Feb 7 20:24:13 PST 2007


Andrei Alexandrescu (See Website For Email) wrote:
> Obligatory comment: it would return true also if it were interpreted as 
> (a < b) == (c < d) or as ((a < b) == c) < d. So the example is unclear.
> 
> :o)
> 
> 
> Andrei

For ultimate clarity, I refer you to the Python language reference on 
the topic:

http://docs.python.org/ref/comparisons.html

It's probably better to point you there than for me to attempt to 
explain it poorly. :-)

-- 
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org



More information about the Digitalmars-d mailing list