3 ms·
They are so simple. It's just the address of the thing it points to. Maybe it's lost in the mists for me too, but if you don't know your pointers from yout ref
by Nursie 13y ago
They are so simple. It's just the address of the thing it points to.
Maybe it's lost in the mists for me too, but if you don't know your pointers from yout references from your values... how can you code anything?
- army 13y agoBased on the experience I've had with teaching programmers, most don't have the distinction clearly in their mental models. For most of basic things they might do it can be made to work either way: usually with a bit of fiddling they can make it work. Of course, this doesn't work at all as soon as you start trying to implement data structures. I've seen some awkward code too from people moving from Java to C++ where either they make everything a pointer, or they use value objects without understanding that they're not references.