You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When #26 was implemented, all struct types now keep a Go pointer field in it.
This means that, no matter how the Go struct value is transferred around, the
actual C value is always passed by reference. This can be very confusing for
some Go code.
The workaround is probably just to add a piece of documentation into every
single generated record struct to clarify this. The caller is responsible for
calling the Copy() method, if there is one.
The text was updated successfully, but these errors were encountered:
When #26 was implemented, all struct types now keep a Go pointer field in it.
This means that, no matter how the Go struct value is transferred around, the
actual C value is always passed by reference. This can be very confusing for
some Go code.
The workaround is probably just to add a piece of documentation into every
single generated record struct to clarify this. The caller is responsible for
calling the
Copy()
method, if there is one.The text was updated successfully, but these errors were encountered: