| . |
. |
C++ Puzzle Answer
Here is the longest pure keyword phrase we've generated so far.
It has 9 keywords in a row:
extern inline virtual operator const volatile unsigned long int
This phrase might be used to declare a class member operator function.
It's interesting to consider exactly what quality is added to such a
declaration by each keyword!
If punctuation is allowed, the possibilities are endless.
Here is one with 30 or more keywords and counting:
class T {
private:
inline virtual operator const volatile unsigned long int();
protected:
inline virtual const volatile unsigned short int();
public:
inline virtual const volatile unsigned long();
inline virtual operator const volatile unsigned short();
inline virtual operator const volatile unsigned char();
// and you could add many more of these
// types of functions here as well...
};
|