- 论坛徽章:
- 0
|
回复 159# wwwsq
那你就又错了。ISO C++之前也没有value computation的解释。
因为evaluation太笼统了,除去产生side effects,剩下的行为应该有个名字。ISO C++11和ISO C11都引入了这一说法。
并且,对于基本概念,这里ISO C和ISO C++是相通的。事实上上,ISO C标准委员会很早就注意起草标准时尽量和ISO C++保持兼容(反过来也一样,也就是互相协调)。
C99 Rationale V5.10
p4
Minimize incompatibilities with C++. The Committee recognizes the need for a clear and defensible plan for addressing the compatibility issue with C++. The Committee endorses the principle of maintaining the largest common subset clearly and from the outset. Such a principle should satisfy the requirement to maximize overlap of the languages while maintaining a distinction between them and allowing them to evolve separately.
顺便
p2
Existing code is important, existing implementations are not. A large body of C code exists of considerable commercial value. Every attempt has been made to ensure that the bulk of this code will be acceptable to any implementation conforming to the Standard. The C89 Committee did not want to force most programmers to modify their C programs just to have them accepted by a conforming translator.
On the other hand, no one implementation was held up as the exemplar by which to define C. It was assumed that all existing implementations must change somewhat to conform to the Standard.
|
|