delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/21/11:23:18

Date: Sun, 21 Jan 2001 18:20:34 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Alain Magloire" <alain AT qnx DOT com>
Message-Id: <9003-Sun21Jan2001182034+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp-workers AT delorie DOT com
In-reply-to: <200101211354.IAA23490@qnx.com> (alain@qnx.com)
Subject: Re: Another item for develop.txi
References: <200101211354 DOT IAA23490 AT qnx DOT com>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sun, 21 Jan 2001 08:54:15 -0500 (EST)
> From: "Alain Magloire" <alain AT qnx DOT com>
> 
> Well I can show a bad example ;-)
> # cat x.cc
> ---------------
> int x (int __op);
> 
> int x (int op)
> {
>  return op;
> }
> ---------------
> # g++ -c x.cc
> 
> Now try to compile this with g++.

That's __op with two underscores, whereas we use one, and for a good
reason.

> Variables, macros, etc .. that are start with a leading '_' are reserved
> by the C/C++ implementation

That's true if the identifier begins with an underscore and an
upper-case letter, or with two underscores.  One underscore and a
lower-case letter should be okay.

- Raw text -


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