Re: ANSI-strict pointer aliasing rules

Поиск
Список
Период
Сортировка
От Taral
Тема Re: ANSI-strict pointer aliasing rules
Дата
Msg-id fa0147d90604271021nd8886a3n4de78dd7148143be@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ANSI-strict pointer aliasing rules  (Taral <taralx@gmail.com>)
Ответы Re: ANSI-strict pointer aliasing rules  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
On 4/27/06, Taral <taralx@gmail.com> wrote:
> If we do subclassing like this:
>
> struct Node { ... };
> struct Value { struct Node; ... };
> etc.
>
> do we still run into the alias problem?

Nope, it appears to get rid of the alias problem completely. But it
requires anonymous structure support (C99?) to work without changing
anything other than headers.

As a bonus, if we ever change Node, we don't have to update any other
structures...

--
Taral <taralx@gmail.com>
"You can't prove anything."   -- Gödel's Incompetence Theorem


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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: AMD64 dual core mutex/spinlock problem
Следующее
От: Bruce Momjian
Дата:
Сообщение: Logging pg_autovacuum