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 4944C317.8060608@mansionfamily.plus.com
Whole thread Raw
In response to Re: Mostly Harmless: Welcoming our C++ friends  (Kurt Harriman <harriman@acm.org>)
List pgsql-hackers
Kurt Harriman wrote:
>   B) let the build farm do a nightly build with a C++ compiler
>      merely as a test to verify that no C++ compilation errors
>      are introduced, but continue to use C 'officially' for
>      builds and releases; or
This was the intent of my suggestion.

There can be advantages in that you can use a lot of C99 (and
still port to non-C99 envs eg MSVC) if you have a few ifdefs
to use std::vector instead of dynamic arrays, but the bigger issue
(for me) was always been that the name mangling means that
you find out pretty quickly if you have a mismatch between
declaration and definition of functions.

Attempting the link with C++ mangling can put this to rest,
even if you never try running it.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: default values for function parameters
Next
From: "David E. Wheeler"
Date:
Subject: Re: WIP: default values for function parameters