[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Binary compatibility
From: |
jemarch |
Subject: |
Re: [pdf-devel] Binary compatibility |
Date: |
Mon, 15 Sep 2008 23:39:48 +0200 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
> c) Totally hide the structure to the compiler, by just giving
> to it a forward-declaration and the defining it in the .c
> that actually creates the instances, so we don't tempt it
> to make weird optimizations based on his knowledge about
> the structure or the user to see it (the distributed .h
> headers would no contain any information about the
> structure).
>
> I think that I like this idea, but I would like to hear the opinion of
> other people before to take any decision about this issue.
I like it, yes. In this way those types will really be 'opaque' to the
program using the library; and there is no possibility to use the
internals of a given type (assuming it's a structure) in a way not
defined in the API.
Ok then, lets go for it. I am going to study the existing ADT case by
case, and covert them to provide the opaque pointers to the client.
Juan Pedro, many thanks to come with the idea.