3 ms·
'static' is old. It must have meant something to Kernighan and Ritchie. I see no connection to the word inline in the C++ meaning. In C, at least, inline means
by mtdewcmu 12y ago
'static' is old. It must have meant something to Kernighan and Ritchie.
I see no connection to the word inline in the C++ meaning. In C, at least, inline means inline.
My guess is that the C++ inline got its meaning from the winding path of c++ history, and only makes sense in the context of that history.
- geon 12y agoI guess it is that in C++, methods implemented in the class declaration are implicitly "inline". It could be done to avoid the problem outlined above.