On Sun, Feb 16, 2020 at 9:47 AM Gašper Ažman <gasper.azman@gmail.com> wrote:

I hear you that it is technically possible to make . behave the same way as -> for raw pointers - but perhaps you should ask yourself why Ritchie and Kernighan didn't do it. I am quite sure they saw the opportunity. Perhaps they thought it was a dangerous idea?

I couldn't really speak to K&R or BS... but I can actually, I'm not sure they could have, because they were code->assembly, and the two are quite different on how you have to get that address... but now there's code->meta->optimizing pipeline->assembly.  There's something like it didn't really occur to me, I used K&R pamphlet-book, and I actually caught that '->' reads the memory location and . uses the base of a more statically allocated thing... but then that's from stepping through code with turbo C's debugger maybe.