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
{{ message }}
Repository navigation
FFI Incompatible types when assigning to type 'void(*)()' from type 'void(*)()' #9090
Hmm, I think we could do that, but that would allow to assign any function pointer to any other. So we would not only ignore the return and parameter types, but also the calling convention. That would seriously undermine the type safety of FFI. To wit:
Activity
cmb69 commentedon Jul 22, 2022
Hmm, I think we could do that, but that would allow to assign any function pointer to any other. So we would not only ignore the return and parameter types, but also the calling convention. That would seriously undermine the type safety of FFI. To wit:
If we want to support function pointer compatibility (what looks sensible), we should also check the details (
src_type->funcanddst_type->func).adsr commentedon Jul 22, 2022
Yes good idea @cmb69. I'll submit a PR incorporating that.
adsr commentedon Jul 22, 2022
#9107