Replies: 1 comment
-
(see your modified example here) If you'd rather both |
Beta Was this translation helpful? Give feedback.
-
(see your modified example here) If you'd rather both |
Beta Was this translation helpful? Give feedback.
-
I have had much grief figuring out my problem and I realized that
fx.Populate()
wants a provided constructor returning a struct, not a pointer. Why is that? Consider this exampleIn this case, what is printed is:
If we of course, reverse this, having
NewState2()
return a pointer and insteadNewState1()
return the struct, we'll end up withWhy is that?
fx.Populate()
's documentation is not clear on this.Beta Was this translation helpful? Give feedback.
All reactions