Re: [go-nuts] reflect.StructOf oddity

2017-06-27 Thread Jon Bodner
https://github.com/golang/go/issues/20824 On Tuesday, June 27, 2017 at 10:34:19 PM UTC-4, Jon Bodner wrote: > > Hi Ian, > > I'll file the bug report. Thanks for explaining how wrapper methods work. > I have a second test case with a pointer (and a successful attempt to > multiply a string by 2)

Re: [go-nuts] reflect.StructOf oddity

2017-06-27 Thread Jon Bodner
Hi Ian, I'll file the bug report. Thanks for explaining how wrapper methods work. I have a second test case with a pointer (and a successful attempt to multiply a string by 2): https://play.golang.org/p/Dq9Y8DAkvA Thanks, Jon On Tuesday, June 27, 2017 at 5:01:05 PM UTC-4, Ian Lance Taylor wr

Re: [go-nuts] reflect.StructOf oddity

2017-06-27 Thread Ian Lance Taylor
On Tue, Jun 27, 2017 at 11:06 AM, Jon Bodner wrote: > > I was writing up an example to demonstrate that embedded fields in a > dynamically generated struct don't delegate. Except that I somehow made one > that did: > > https://play.golang.org/p/TWApy-JibG > > What's extra-odd is that the behavior

[go-nuts] reflect.StructOf oddity

2017-06-27 Thread Jon Bodner
Hi all, I was writing up an example to demonstrate that embedded fields in a dynamically generated struct don't delegate. Except that I somehow made one that did: https://play.golang.org/p/TWApy-JibG What's extra-odd is that the behavior is completely wrong; it's doubling off of the wrong fie