Re: Is there 'private' in namespace?
On Jul 27, 5:55 am, Peng Yu <PengYu...@gmail.com> wrote:
On Jul 25, 5:21 am, James Kanze <james.ka...@gmail.com> wrote:
At any rate, the *only* evolution along these lines I've ever
seen is from private to public, not the other way around.
In the post by Joe, he mentioned 'module', which is what I
really meant (I didn't know the appropriate word should be
'module', before Joe told me).
Modules are something very different; they actually do
something. I'm not up to date with the actual proposal in C++,
but presumably, once you've delivered a compiled module
interface file, the client code cannot add to the module. In
other words, modules are closed, like classes (except that they
are closed later in the development process---a class is closed
as soon as you write the closing brace).
Not that that affects my comment: you never evolve from public
to private (which would break the interface), but from private
to public.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34