It is beneficial if the implementation changes in a library does not forces the clients to re-compile their code. But how would you minimize compilation dependencies? The key to this is replacement of dependencies on definitions with dependencies on declarations. There are following 2 ways:
- Handle classes: By employing pimple idiom in classes.
- Interface classes: By declaring abstract base class
prev | next
Cheers and try hosting at Linode.
No comments:
Post a Comment