3 ms·
This is the same as a const ptr in C: the pointer can't change but the value it points to can. While it may seem broken it has its uses. Doing deep watches to d
by zbjornson 10y ago
This is the same as a const ptr in C: the pointer can't change but the value it points to can. While it may seem broken it has its uses. Doing deep watches to disallow object mutation would be impossibly expensive (I think?).
- netule 10y agoNot sure if this is valid C syntax, but in C++ you can do something like: type const * const Which is a const pointer to a const type, making both the pointer and the data immutable.