By reading Ross Cox's article: http://research.swtch.com/interfaces I got an interface value is represented by a struct as the following:
> type interfaceStruct struct { > value *_value > inter *struct { > typ _type > mhdr []imethod > } > } > where value is a pointer pointing the real value allocated on heap. In my understanding, the real values stored in an interface value are read only. So I think there is no need to copy the real value on heap when assigning an interface value to another, is it right? -- 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.