Skip site navigation (1) Skip section navigation (2)

Re: ANSI-strict pointer aliasing rules

From: Taral <taralx(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ANSI-strict pointer aliasing rules
Date: 2006-04-27 17:21:55
Message-ID: fa0147d90604271021nd8886a3n4de78dd7148143be@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On 4/27/06, Taral <taralx(at)gmail(dot)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(at)gmail(dot)com>
"You can't prove anything."
    -- Gödel's Incompetence Theorem

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2006-04-27 17:37:55
Subject: Logging pg_autovacuum
Previous:From: Teodor SigaevDate: 2006-04-27 17:10:35
Subject: Re: GIN - Generalized Inverted iNdex. Try 3.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group