News for hackers. Stuff that matters.
Re:Understand Go pointers by kazinator on Wednesday April 26, 2017 @10:53AM (#14203454)
> Then for a C programmer

Maybe that's not the target audience?

Tutorials targetted at C newbies have been about "C pointers" for eons; why would Go tutorials refer to a different programming language?

What that program is doing would not be well-defined in C; you cannot increment a pointer from the address of one local variable to point to another, without leaving behind the ISO C standard dialect. I haven't seen any compiler-specific document which "blesses" the practice.

If that is well-defined in Go, that would be an excellent reason why the article really is specifically about Go pointers and not C pointers.

There are no comments on this comment yet.