This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ name with leading underscore character not Compiling


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]