Re: const correctness

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: const correctness
Дата
Msg-id 4EBBDEB00200002500042CFF@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: const correctness  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: const correctness  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The problem with it of course is that mistaken use could have the
> effect of casting-away-const, which is exactly what we hoped to
> prevent.  Still, there may not be a better solution.
Yeah, I've come to the conclusion that the compiler doesn't do the
apparently-available optimizations using const precisely because it
is so easy to cast away the property maliciously or accidentally.
-Kevin


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade automatic testing
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: foreign key locks, 2nd attempt