Abstract
The preprocessor is increasingly becoming redundant because of equivalent C++ language-based features. The const keyword allows constant identifiers to be defined. Macros are replaced by inline functions, with the template feature defining and declaring type-independent functions and classes. We shall see in the next chapter that the namespace feature associates a name to a given scope. All of const, inline, template and namespace are statically type-checked, whereas the preprocessor bypasses the static type checking mechanism of C++.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1996 Springer-Verlag London Limited
About this chapter
Cite this chapter
Seed, G.M. (1996). The Preprocessor. In: An Introduction to Object-Oriented Programming in C++. Springer, London. https://doi.org/10.1007/978-1-4471-3378-0_18
Download citation
DOI: https://doi.org/10.1007/978-1-4471-3378-0_18
Publisher Name: Springer, London
Print ISBN: 978-3-540-76042-9
Online ISBN: 978-1-4471-3378-0
eBook Packages: Springer Book Archive