Re: [go-nuts] The &(*x) idiom for copying.

2018-03-28 Thread Ian Davis
On Wed, 28 Mar 2018, at 5:21 PM, thwd wrote: > https://play.golang.org/p/pjyoPX99Zr1 > > Taking the address of an explicit dereference has different behavior > than implicitly dereferencing and taking address.> > Is this the desired behavior? It surprised me. I think the naming of your functions

[go-nuts] The &(*x) idiom for copying.

2018-03-28 Thread thwd
https://play.golang.org/p/pjyoPX99Zr1 Taking the address of an explicit dereference has different behavior than implicitly dereferencing and taking address. Is this the desired behavior? It surprised me. -- You received this message because you are subscribed to the Google Groups "golang-nuts