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
This way, the caller could safely copy Record without worrying about losing
the finalizer. It will also allow the generated Go code to express the same
level of pointers, though this might be trickier than it seems.
The generated record should have a Copy() method explicitly for duplicating
the underlying C value, though, and the method should reset the finalizer, but
some record types already have a _copy() method, so we don't actually need
that.
The text was updated successfully, but these errors were encountered:
Go structs generated should be defined as such:
Then, the finalizer can be set like so:
This way, the caller could safely copy
Record
without worrying about losingthe finalizer. It will also allow the generated Go code to express the same
level of pointers, though this might be trickier than it seems.
The generated record should have a
Copy()
method explicitly for duplicatingthe underlying C value, though, and the method should reset the finalizer, but
some record types already have a
_copy()
method, so we don't actually needthat.
The text was updated successfully, but these errors were encountered: