delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/23/06:15:04

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C12565B4.0034E9B2.00@vega.ads.it>
Date: Mon, 23 Feb 1998 10:38:22 +0100
Subject: Re: xor and how to do it
Mime-Version: 1.0




>> Don't understand your question here. :( There are no keywords in C/C++
>> named 'and' 'or' or 'xor'!
>
>That's not true. At least not for GNU C++. There is a commandline
>switch -foperator-names which enables the use of these keywords
>as synonyms for the corresponding characters. Read the gcc doc for it.

Two questions:

Is this some gcc extension or is it standard c++ ?

Are these operators exactly equal to the symbols or is it like perl (same
semanthics but different priority) ?

ciao
  Giacomo




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019