Re: ANSI-strict pointer aliasing rules

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: ANSI-strict pointer aliasing rules
Дата
Msg-id 87slnz6kau.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: ANSI-strict pointer aliasing rules  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: ANSI-strict pointer aliasing rules  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:

> You're right, PostgreSQL uses a form of subclassing, so that a (for
> example) struct ArrayRefExprState is occasionally referred to using a
> (struct ExprState*) or even a (struct Node*). In C, the logical way to
> get that to work it by casting, do you have a better way?

There are other ways of achieving the same thing. Structs containing a union
for the subclass fields for example.

-- 
greg



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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: GIN - Generalized Inverted iNdex. Try 3.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: GIN - Generalized Inverted iNdex. Try 3.