News for hackers. Stuff that matters.
Re:Understand Go pointers by weberc2 on Wednesday April 26, 2017 @10:19AM (#14203159)
> In C, for example, you cannot reference one object from a pointer to another object (there is one exception to this rule).

I'm confused about what this means--can you explain?

Re:Understand Go pointers by Arnavion on Wednesday April 26, 2017 @12:26PM (#14204458)
You can't both cast a double* to an int* and then dereference the int* , expecting to read an int-sized chunk of the double. It's called strict aliasing and there are defined scenarios where it is allowed (one is that char* is an alias for all pointers).