Chapter 16. Keywords

It's easy to define new types in C++ (see Chapter 13), since that's one of the prime features of C++. It's harder to define values (see Chapter 15), but still eminently feasible. But it's pretty much impossible to introduce or effect new keywords in a safe manner. The only way to do this is with macros, which we all know are the last resort of the competent practitioner, even an imperfect one. So, into the breach we go....

interface

The word interface has found common use in the Common Object Request Broker Architecture (CORBA) and the Component Object Model (COM), taking the meaning of a fully abstract class, that is, one in which every member is pure virtual. It is such a great thing to denote—from the perspective of a reader ...

Get Imperfect C++ Practical Solutions for Real-Life Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.