Re: SPI-header-files safe for C++-compiler - Mailing list pgsql-patches

From Tom Lane
Subject Re: SPI-header-files safe for C++-compiler
Date
Msg-id 22646.1183409842@sss.pgh.pa.us
Whole thread Raw
In response to Re: SPI-header-files safe for C++-compiler  ("Jacob Rief" <jacob.rief@gmx.at>)
Responses Re: SPI-header-files safe for C++-compiler  ("Jacob Rief" <jacob.rief@gmx.at>)
List pgsql-patches
"Jacob Rief" <jacob.rief@gmx.at> writes:
>> Tom Lane writes:
>> Anyway, at this point my concern is not so much whether we could fix
>> it as what is the plan for keeping it fixed.

> A best practice statement, telling developers not use C++-keywords as identifiers in header-files.

That will have exactly zero effect.  As was shown upthread, even
everyday C++ programmers don't remember what all the extra keywords are.
Guys who mainly code C are very unlikely to get this right if there's no
automatic check being applied.

            regards, tom lane

pgsql-patches by date:

Previous
From: "Jacob Rief"
Date:
Subject: Re: SPI-header-files safe for C++-compiler
Next
From: Magnus Hagander
Date:
Subject: Re: pg_ctl -w (wait) option on Windows