Re:C++ object model and other internals explained with simpl...
by jpr on Wednesday March 30, 2011 @02:35AM
(#2386114)
If C++ can be explained adequately with simple C code, why use C++ in the first place?
[ Parent
| on HN ]
Re:C++ object model and other internals explained with simpl...
by mahmud on Wednesday March 30, 2011 @02:46AM
(#2386136)
Some manual C code can adequately explain what C++ does automatically.
The difference is cost; you have to link against C code, for some platforms, what C++ provides for free on all platforms.
Re:C++ object model and other internals explained with simpl...
by roel_v on Wednesday March 30, 2011 @06:08AM
(#2386505)
C++ cannot be explained fully with simple and safe C code. For example, theoretically one could implement the most basic usage of templates with macros; it would however not be easy to work with (error message in the wrong places) and it would still not emulate e.g. template specialization.