Re: Existence Based Polymorphism
Emil Dotchevski <[email protected]>
| Newsgroups | gmane.games.devel.sweng |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 2, 2010 at 4:47 AM, Conor Stokes <[email protected]> wrote: > This hiding thing from compiler eyes problem is fairly specific to C++ (not > OOP) and it's creaky single pass every-source-file-lives-alone compilation > method, not the OOP encapsulation mechanism at all. That's the reason you > get pImpls, to stop having to include every header under the sun and > sometimes to avoid giving out code if you are say, selling a library. Other > statically typed OOP languages like C# and Java don't have these problems > because they have modern compilation systems and well defined ABIs. Mostly they don't have these problems because objects of user-defined type live on the heap, so the compiler only needs to know how to compile a pointer to an object. That's the same as using pointers in C and C++ and in that case you don't have to #include anything. The fact that those languages have a well defined ABI has some advantages but it is also a source of overhead and an obstacle for deployment on many platforms. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode _______________________________________________ Sweng-Gamedev mailing list [email protected] http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com