Board index » delphi » Logical operators

Logical operators

    Where are the logical operators defined ( || && ect.).  Are there
already definitions for operators such as XOR and XAND?  Thanks.

Eric

 

Re:Logical operators


Logical operators such as ||, ^ and && are defined by the C and C++
languages.  Neither C nor C++ have the constructs XOR or XAND.

The compiler help files contain an overview of the languages including the
operators.  The compiler, tools and libraries are a large subject in
themselves and the help files try to cover them well.  They do not attempt
to provide a tutorial on the C or C++ languages.  For that it might be best
to get a book on the language.

.  Ed

Re:Logical operators


On Tue, 18 Sep 2001 17:32:01 -0400, FirstName LastName <stu99...@aug.edu>
wrote:

Quote
>Where are the logical operators defined ( || && ect.).  

In the compiler (internally).

If you mean where are they *described*, usually in the online help
for whatever compiler you happen to be using.

Quote
>Are there already definitions for operators such as XOR and XAND?

Look at the bitwise operators in the help:
 &   bitwise AND
 ^   bitwise exclusive OR
 |   bitwise inclusive OR

--
Wayne A. King
(ba...@torfree.net, wayne.k...@ablelink.org,
 wak...@idirect.com, Wayne_A_K...@compuserve.com)

Other Threads