3 ms·
I understand the use of closures for data hiding, but why is it news that a cute trick can get you access to the private members? If you dump whatever a C++ obj
by yan 18y ago
I understand the use of closures for data hiding, but why is it news that a cute trick can get you access to the private members? If you dump whatever a C++ object ptr is pointing to, you'll see its privates too.
I just don't see it as anything to be raising a fuss over.
- timr 18y agoDo that in C++, and you'll be doing something extremely implementation-defined, so it's kind of a different animal. (That said, this is an implementation-specific detail, too.)