Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!artcom0!hb.maus.de!hh.maus.de!Michael_Hoennig From: Michael_Hoennig@hh.maus.de (Michael Hoennig) Newsgroups: comp.lang.c Subject: Public vs Private header files Message-ID: <4238@hh.maus.de> Date: 5 Jun 91 18:32:00 GMT Article-I.D.: hh.4238 Distribution: world,comp Organization: Maus Mailbox Netz - UUCP-Gateway Bremen Lines: 22 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)