Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - comparison operators !< !<> ...
Hello, I just had a look at math.h and found the macros for isgreater, isless and some others. The definition of isgreater is #define isgreater(x,y) !((x) !> (y)) Are these !op comparison operators DMC-extension (I didn't find any reference to these elsewhere)? It seems that !op negates the result of the comparison, so that a !> b is the same as !(a > b) Is this right? If so, why have you extended the standard operators? - Heinz Sep 08 2005
"Heinz Saathoff" <hsaat despammed.com> wrote in message news:MPG.1d8a0089f315b39d9896f1 news.digitalmars.com...I just had a look at math.h and found the macros for isgreater, isless and some others. The definition of isgreater is #define isgreater(x,y) !((x) !> (y)) Are these !op comparison operators DMC-extension (I didn't find any reference to these elsewhere)? It seems that !op negates the result of the comparison, so that a !> b is the same as !(a > b) Is this right? Sep 08 2005
Walter Bright schrieb...I just had a look at math.h and found the macros for isgreater, isless and some others. The definition of isgreater is #define isgreater(x,y) !((x) !> (y)) Are these !op comparison operators DMC-extension (I didn't find any reference to these elsewhere)? It seems that !op negates the result of the comparison, so that a !> b is the same as !(a > b) Is this right? Sep 08 2005
|