Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!oddjob!tank!uxc!uxc.cso.uiuc.edu!a.cs.uiuc.edu!m.cs.uiuc.edu!grunwald From: grunwald@m.cs.uiuc.edu Newsgroups: comp.lang.c++ Subject: Re: Can we hide the private part of a c Message-ID: <4800037@m.cs.uiuc.edu> Date: 28 Sep 88 01:28:00 GMT References: <1358@stratus> Lines: 13 Nf-ID: #R:stratus:1358:m.cs.uiuc.edu:4800037:000:567 Nf-From: m.cs.uiuc.edu!grunwald Sep 27 20:28:00 1988 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.