Re: Coding style point: "const" in function parameter declarations

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Coding style point: "const" in function parameter declarations
Дата
Msg-id 4E01CC9E020000250003EA9C@gw.wicourts.gov
обсуждение исходный текст
Ответ на Coding style point: "const" in function parameter declarations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 2. In cases such as "const Relation foo" where the parameter type
> is a typedeffed pointer, it is easy for readers to arrive at the
> false conclusion that this guarantees the function doesn't change
> the pointed-to structure.
So easy that in fact that was my belief when I wrote it.  Since that
was wrong, I totally support the (now accomplished) removal of the
useless and misleading qualifier.  Thanks for spotting this mistaken
assumption.
-Kevin


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_dump vs malloc
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Coding style point: "const" in function parameter declarations