Re: ANSI-strict pointer aliasing rules - Mailing list pgsql-hackers

From Taral
Subject Re: ANSI-strict pointer aliasing rules
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: ANSI-strict pointer aliasing rules  (Tom Lane <[email protected]>)
Responses Re: ANSI-strict pointer aliasing rules
List pgsql-hackers
On 4/27/06, Tom Lane <[email protected]> wrote:
> Greg Stark <[email protected]> writes:
> > There are other ways of achieving the same thing. Structs containing a union
> > for the subclass fields for example.
>
> Doesn't achieve the same thing, unless you mandate that every part of
> the system use the identical massively-overloaded union struct to refer
> to every node.

If we do subclassing like this:

struct Node { ... };
struct Value { struct Node; ... };
etc.

do we still run into the alias problem?

--
Taral <[email protected]>
"You can't prove anything."   -- Gödel's Incompetence Theorem


pgsql-hackers by date:

Previous
From: Taral
Date:
Subject: Re: ANSI-strict pointer aliasing rules
Next
From: Teodor Sigaev
Date:
Subject: Re: GIN - Generalized Inverted iNdex. Try 3.