Code is also data in C++, because a source file is a vector of bytes, which is a type of data that C++ can manipulate.
I think when people say “code is data” what they really mean is something more specific, like the AST is easy to access and manipulate in the language.
If the C++ compiler takes it, it is C++ code. The fact that it is almost valid C code does not change that.
The reactions a number of people have to C++ code that is also valid C code or close to being it are ridiculous. Some times, they even deny C++ code is C++ code. :/
I think when people say “code is data” what they really mean is something more specific, like the AST is easy to access and manipulate in the language.
reply