4 ms·
I mean, kinda but not? Based on https://github.com/golang/go/issues/12416 https://github.com/golang/go/issues/12416 / https://golang.org/cmd/cgo/ https://golan
by vvanders 9y ago
I mean, kinda but not?
Based on https://github.com/golang/go/issues/12416 https://github.com/golang/go/issues/12416 / https://golang.org/cmd/cgo/ https://golang.org/cmd/cgo/ :
> However, C code may not keep a copy of the Go pointer after the call returns.
It looks like they've just punted on the pinning issue and not allowed code that does it.
Having written a ton of FFI code across a wide range of languages this type of restriction means that you're not going to be able to implement certain things which is unfortunate.