Re: Mostly Harmless: Welcoming our C++ friends - Mailing list pgsql-hackers

From James Mansion
Subject Re: Mostly Harmless: Welcoming our C++ friends
Date
Msg-id 493AE2C5.5020009@mansionfamily.plus.com
Whole thread Raw
In response to Re: Mostly Harmless: Welcoming our C++ friends  (Kurt Harriman <harriman@acm.org>)
Responses Re: Mostly Harmless: Welcoming our C++ friends
Re: Mostly Harmless: Welcoming our C++ friends
List pgsql-hackers
Kurt Harriman wrote:
> The foremost opposing argument seems to have been that there
> should be no attempt to alleviate the existing reserved word
> problem without automatic enforcement to guarantee that never
> in the future can new occurrences be introduced.
Is there anything in the source that would necessarily preclude using the
C++ compiler to build *all* the code?

I'd guess that this would be quite a big patch to do this in any places
where we have implicit conversions from void* to char* etc, but
the result is valid as C and C++ and arguably better documented.

C++ is picky about a few things you can do in C, but most of them
are things I'd rather not do anyway.

Run such a build on the build farm each night, and it will be obvious as
soon as C++-unfriendly code sneaks in.

And who know, maybe eventually we could use C++ properly in the
code.

James



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Mostly Harmless: Welcoming our C++ friends
Next
From: Andrew Dunstan
Date:
Subject: Re: user-based query white list