C++ thingies
- From: Drazen Kacar <dave arsdigita com>
- To: gnome-hackers gnome org
- Subject: C++ thingies
- Date: Tue, 29 May 2001 03:45:45 +0200
I haven't written a line of C++ in my life, so I have to ask somebody.
There's a nice page summarizing differences between C and C++ at:
http://home.flash.net/~dtribble/text/cdiffs.htm
Under "Function name mangling" it says that C++ forbids identifiers which
contain two consecutive underscores, because that's reserved for mangling.
I was just trying to compile some stuff and I've seen a lot of public
functions with two underscores.
So, the question is: is that page correct about underscores and if so,
shouldn't public headers be without functions named like that?
It's perfectly possible that something like:
extern "C" {
void foo__bar(int);
}
is legal, but the page doesn't say anything about that option and I don't
know anything about C++, so here you go.
--
.-. .-. Sarcasm is just one more service we offer.
(_ \ / _)
| dave arsdigita com
|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]