Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++
Home

[Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: fbriere@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Wed, 15 Dec 2004 09:34:25 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11213 >

On Wed, 15 Dec 2004, Jason Short wrote:

> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11213 >
>
> What is left to be fixed?
>
> Before making any real C++-specific changes I would like to change the
> docs to clarify what the code is "supposed" to do.  Does everyone agree
> that header files can be C++-compatible?

As I said before, I'm ok with variable renaming or adding casts to void
pointers, etc. What I am *not* ok with is adding "#ifdef __cplusplus" all over
the common code, or other C++ specific features. The common code is 100% C
and should remain so. It is a bad idea to pollute it with C++, because for all
we know someone could want to make an Objective-C client next, do the
same things, and turn the common code into a total mess.

GCC should remain as our target compiler suite.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa







[Prev in Thread] Current Thread [Next in Thread]