Inside the C++ Object Model. Stanley B. Lippman

Inside the C++ Object Model


Inside.the.C.Object.Model.pdf
ISBN: 0201834545,9780201834543 | 182 pages | 5 Mb


Download Inside the C++ Object Model



Inside the C++ Object Model Stanley B. Lippman
Publisher: Addison-Wesley Professional




Hi Everyone, Just sharing my thoughts after reading Inside C++ Object Model by Stanley B. 1 针对数组的new semantic int *p_array=new int[5]; 上述表达式只是声明了5个int 指针,并没有初始化(调用vec_new()). Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary. Data语义学:一.一个类得实际大小受到三个因素影响:1.语言本身所造成的额外负担.比如virtual ,虚基类.2.编译器对于特殊情况所提供的优化处理3.内存对齐(Alignment)的限制. ƞ�造函数语意学3.data语意学4.funtion语意学5. ƞ�造,解构,拷贝语意学6. In this talk He is the author of C++ Primer, 4e (2005) and Inside the C++ Object Model. ǜ�完这本书的感觉就是,用C++编程,其实应该说是面向编译器编程。为了实现OO的思想,C++编译器在程序员背后做了太多的事情。 1)为了和C兼容,class的内存布局设计成和struct一样;. Ő�闻这本书很久了, 据说比较难~. ȿ�需要注意的是避免一个base class 指针指向一个drived class objects 所组成的数组. My question is: as per "Inside C++ Object Model" I don't need a copy constructor for the above class so when I am explicitly saying not to generate a copy constructor (using delete) why am I getting an error? This is a must read book for every C++ programmer. I think the reasons for this are historical. C++ programmers wishing to inhabit the CLI development space until now have had to leave C++ and generally work in C# (or Java).