3 ms·
The PCL description is a good one. My book expands on it two ways. First, I describe how the condition system can be used to work with conditions that are not
by phoe-krk 6y ago
The PCL description is a good one. My book expands on it two ways.
First, I describe how the condition system can be used to work with conditions that are not errors and therefore do not require to be handled; Peter Seibel calls SIGNAL a "primitive" function, therefore completely skipping the scenario in which a condition may not be handled. And, by that, he skips non-error non-warning conditions altogether!
Second, the PCL chapter does not describe the internals of a condition system, how the handlers and restarts are constructed. My book describes that in detail twice: once, building a sample condition-like system piecewise, and then again, describing the implementation of a complete, ANSI-compliant condition system.