On Wed, Dec 20, 2017 at 2:45 AM, Xuanyi Chew <che...@gmail.com> wrote:
>
> I'm guessing also, that a "true" pointer has to be byte aligned - no pointer
> tagging shennanigans with unsafe.Pointer

You can do all the pointer tagging you like as long as the final bits
can not be interpreted as a pointer into the Go heap.

But if you do pointer tagging you should almost certainly be declaring
the value as uintptr in Go, rather than as a pointer type.  You can't
indirect a tagged pointer in Go anyhow, so don't give it a pointer
type.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to