4 ms·
If I understand correctly you can achieve something similar in many other languages by implementing a dereference operator. You'll have to be explicit when you
by simias 12y ago
If I understand correctly you can achieve something similar in many other languages by implementing a dereference operator. You'll have to be explicit when you use the object though (o.foo vs. o->foo for instance). I tend to prefer these kinds of explicit constructs over compiler magic, but it's a matter of taste really.
- quatrevingts 12y agoThe built-in version has the big advantage that it integrates well with tools: you can statically determine the target of the reference and jump to it.