[合集] static const代替define的performance tradeoff在哪里?# Programming - 葵花宝典
c*d
1 楼
☆─────────────────────────────────────☆
blueivan (bl.ue) 于 (Mon Nov 6 16:48:51 2006) 提到:
编译器到底是用值还是用变量???
☆─────────────────────────────────────☆
NeverLearn (Nice people finish last) 于 (Mon Nov 6 17:02:23 2006) 提到:
It has to be variable-oriented since you can type cast away the
constness of a variable, so you can NOT assume it never changes.
☆─────────────────────────────────────☆
Pontiff (需要一点运气--to candidacy) 于 (Mon Nov 6 17:51:11 2006) 提到:
variable. just as static storage s
blueivan (bl.ue) 于 (Mon Nov 6 16:48:51 2006) 提到:
编译器到底是用值还是用变量???
☆─────────────────────────────────────☆
NeverLearn (Nice people finish last) 于 (Mon Nov 6 17:02:23 2006) 提到:
It has to be variable-oriented since you can type cast away the
constness of a variable, so you can NOT assume it never changes.
☆─────────────────────────────────────☆
Pontiff (需要一点运气--to candidacy) 于 (Mon Nov 6 17:51:11 2006) 提到:
variable. just as static storage s