Long answer: Yes, but not in C++. C++ is not a "reflexive" language; it can not modify it's own code at run time. There are languages that have the ability to use and modify the code that it runs at run time, but the immense amount of danger that's inherent in that type of ability seems to be excessive.