[comp.lang.c] Public vs Private header files

Michael_Hoennig@hh.maus.de (Michael Hoennig) (06/06/91)

Hi Simon,

WS>In C++ you have private/public/protected members, but the header file
WS>must contain reference to all these things, regardless of whether the
WS>user needs to see them or not.

WS>ii) when implementation-specific features are changed (such as, in a recent
WS>case with me, where I wanted a different sized array in my class) which
WS>do not change the semantics of the class, the user has to be recompiled as

the problem is, that there are no compiled DEF Files like in Modula/2.
Compiled DEF-Files can hold informations about the size ans position of
the members because at their compile-time they use the implementation part
too. And these informations must known in the client-module for allocating
stack space (auto variables) and DS-space (global).

Bye

--
Michael Hoennig -- Dobbelersweg 45 -- D-2000 Hamburg 26 -- ++49 40 219 24 58
office: mi1@starlab.UUCP -- ++49 40 23 08 56 (StarDivision Hamburg)