[cling]$ #include "cling/Interpreter/Interpreter.h"
[cling]$ gCling->allowRedefinition();
[cling]$ gCling->isRedefinitionAllowed();
root-project/root#4214 root-project/cling#259
Access hidden variables
When you redefine a variable, class, or anything else, you are actually overlay the variable, class, etc. This allows you to access the previous definition. The definition uses namespaces to hide variables. It starts with __cling_N50
and continues with __cling_N51
and so on. Right now, I don't know how to determine the namespace of a variable.