Thanks, all!!! Frank
On Friday, January 5, 2018 at 4:25:33 AM UTC-5, Ian Davis wrote: > > On Thu, 4 Jan 2018, at 6:55 PM, Frank Davidson wrote: > > Thanks!!! Very helpful blog post!! > > So, in proc, the slice header is copied, then an entirely new array is > created - []byte{5,6,7,8} - and the slice header copy is set to point at > that new array, and then discarded, whereas in proc 2, the slice header is > not reset, and so still points to the original array? > > > Yes > -- 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.