12Aug/090
C++ operator synonyms
I was surprised when kate highlighted and
as a keyword, when I edited a cpp source file.
The almighty wikipedia gave me the following explanation:
C++ defines keywords to act as aliases for a number of symbols that function as operators: and (&&), bitand (&), and_eq (&=), or (||), bitor (|), or_eq (|=), xor (^), xor_eq (^=), not (!), not_eq (!=), compl (~). These are parsed exactly like their symbolic equivalents, and can be used in place of the symbol they replace.
Link:
wikipedia
Leave a comment