Re: SPI-header-files safe for C++-compiler

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SPI-header-files safe for C++-compiler
Дата
Msg-id 22646.1183409842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SPI-header-files safe for C++-compiler  ("Jacob Rief" <jacob.rief@gmx.at>)
Ответы Re: SPI-header-files safe for C++-compiler
Список 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 по дате отправления:

Предыдущее
От: "Jacob Rief"
Дата:
Сообщение: Re: SPI-header-files safe for C++-compiler
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_ctl -w (wait) option on Windows