April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Objectives
In this chapter, you’ll:
Understand the motivation for modularity, especially for large software systems.
See how modules improve encapsulation.
import standard library headers as module header units.
Define a module’s primary interface unit.
export declarations from a module to make them available to other translation units.
import modules to use their exported declarations.
Separate a module’s interface from its implementation by placing the implementation in a :private module fragment or a module implementation unit.
See what compilation errors occur when you attempt to use non-exported module items.
Use module partitions to organize modules into logical components.
Divide a module into ...