delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <1cbe225f0704160234u24b104a5o9b459178e895a5a8@mail.gmail.com> |
Date: | Mon, 16 Apr 2007 19:34:10 +1000 |
From: | "Chelton Evans" <cheltonevans AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | C++ name with leading underscore character not Compiling |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
I believe it is legal to have a C++ variable name with a leading underscore. A name with two underscores is reserved, so I guess this is illegal. Currently the two cases are reversed. class hat { ... void fred( int __name) ... compiles, but class hat { ... void fred( int _name)... which is legal does not compile. Could you confirm or deny the problem. Thanks and sorry if this has already been addressed. I am porting my code from Fedora, and compiling it in Cygwin and got a shock. Chelton Evans -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |