Re: const correctness

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: const correctness
Дата
Msg-id CAEYLb_WRr1pqqGJ8=cUFLxbHLCk6OM296mqKRop362LT0zmmJQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: const correctness  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: const correctness  (Greg Jaskiewicz <gj@pointblue.com.pl>)
Список pgsql-hackers
On 9 November 2011 15:24, Tom Lane <tgl@sss.pgh.pa.us> wrote:.
> If you go down this road you soon start needing duplicate functions
> for no other reason than that one takes/returns "const" and one doesn't.

Why would you have to do that?

To my mind, the fact that const "spreads" is a feature, not a deficiency.


--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


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

Предыдущее
От: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Дата:
Сообщение: Re: ProcArrayLock contention
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: new warning