[comp.lang.c++] Can we hide the private part of a c

grunwald@m.cs.uiuc.edu (09/28/88)

re: hiding the definition of class information.

This isn't done, but wouldn't be impossible to do in G++, although I don't
know if it could be done easily in AT&T in C++.

The problem is that if you weant to compile-time allocate objects, you need
to know the final size of that object.

It would be possible to provide link-time sizing of objects. This would
require a much more complicated linking phase than is currently used. It's
not clear to me that you could do this using stock C compilers; you'd need
to be able to pass much more information to the linker.

grunwald@m.cs.uiuc.edu (10/04/88)

I think that many of these arguments are looking only at the existing compiler
and tools. There are many things you can do by having a more elaborate
combining/linking phase.