On Tuesday, October 11, 2016 at 11:11:05 PM UTC+8, Jan Mercl wrote:
>
> On Tue, Oct 11, 2016 at 4:55 PM T L <tapi...@gmail.com <javascript:>> 
> wrote:
>
> > So values of type unsafe.Pointer can be converted to values of type 
> *unsafe.Pointer?
> > But I can't find the official docs mentioning this.
>
> "Any pointer or value of underlying type 
> <https://golang.org/ref/spec#Types> uintptr can be converted to a Pointer 
> type and vice versa."[0]
>

ok, not realize values of *unsafe.Pointeris belong to any pointer.

>
> > Is it safe?
>
> Do you mean if it's safe to use package unsafe? ;-)
>
>   [0]: https://golang.org/ref/spec#Package_unsafe
>
> -- 
>
> -j
>

-- 
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