From: | James Mansion <james(at)mansionfamily(dot)plus(dot)com> |
---|---|
To: | Kurt Harriman <harriman(at)acm(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Mostly Harmless: Welcoming our C++ friends |
Date: | 2008-12-14 08:25:59 |
Message-ID: | 4944C317.8060608@mansionfamily.plus.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | David E. Wheeler | 2008-12-14 08:34:22 | Re: WIP: default values for function parameters |
Previous Message | Tom Lane | 2008-12-14 05:55:59 | Re: WIP: default values for function parameters |