Public vs Private header files
Michael Hoennig
Michael_Hoennig at hh.maus.de
Thu Jun 6 04:32:00 AEST 1991
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 at starlab.UUCP -- ++49 40 23 08 56 (StarDivision Hamburg)
More information about the Comp.lang.c
mailing list