Re: [go-nuts] reflect.StructOf embedded base type with pointer type method set

2020-02-11 Thread Frank Rehwinkel
Well, I didn't point out the problem succinctly. And it's easy to work around the problem by making the field a pointer. And the compiler does it correctly otherwise someone else would have reported or fixed it already. Sorry the compiler and standard library are creating so much work. It's rea

[go-nuts] reflect.StructOf embedded base type with pointer type method set

2020-02-10 Thread Frank Rehwinkel
First, sorry for the long text. If this subject is of interest, one may want to skip to the code at the bottom. It seems reflect.StructOf is not doing what the compiler does for first field embedded base types with a pointer receiver method set. reflect.StructOf can't do a lot of things but oth