On Tuesday, 5 December 2017 12:19:29 UTC+11, simon place wrote:
>
> in a very similar vein, something i have been wondering about for a while 
> now;
>
> when an interface contains a pointer type, does Go double dereference or 
> conflate the pointers?
>

If the *type* of the value placed into the interface is pointer shaped then 
it value is used as is, if not, the address of the value is taken, and the 
address is used as the interface's value.
 

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