This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: Why does GCC allow '$' character in variable and function names?


Ian Lance Taylor writes:
 > gcc permits '$' as an implementation defined character.  It does this
 > mainly for historical reasons.

We also need it to link C++ programs with programs written in the Java
language.  That's because in Java, classes have synthetic fields whose
names contain '$' chracaters.

Andrew.


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