j*****I 发帖数: 2626 | 1 书上是这么说的,
With languages like C, the basic unit of reuse is the function. The problem
with function-based reuse is that the function is coupled to the data it
manipulates. and if the data is global, a change to benefit one function in
one reuse context damages another function used somewhere else.
哪位能给个例子? C大量使用library,不都是function-based的么? |
|