- 论坛徽章:
- 0
|
原帖由 starwing83 于 2009-8-20 13:51 发表 ![]()
C++是strong typed?
C++也有integer promtion吧?也有implied cast吧?好像有implied cast的语言都不会是strong typed的吧?虽然C++的类型转换的确比C的严格一些。
Interger promotion和strong typed有冲突吗?我记得有本书(不记得是不是D&E了)讲C和C++区别时专门提到了这一点。下面是TC++PL中的一段描述:
C++ supports a variety of programming styles. All are based on strong static type checking, and most aim at achieving a high level of abstraction and a direct representation of the programmer's ideas. Each style can achieve its aims effectively while maintaining run-time and space efficiency. |
|
|