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
The only reference to using pointers in function signatures that I found was as follows:
ffi_type_pointer
A generic void * pointer. You should use this for all
pointers, regardless of their real type.
The problem with this is that as void * is a data pointer, it is not suitable for usage as a function pointer.
See https://c-faq.com/ptrs/generic.html.
The request is that a separate ffi_function_pointer is provided, mapping to C's void(*)().
The text was updated successfully, but these errors were encountered:
We have not encountered any platform yet that actually incur such breakage/mismatch - at the moment, it's primarily a "technically this should be avoided" by the specification, situation.
If the lack of "realism" is not a deal-breaker, would the project be open to any commits adding such a feature?
On Tue, Jul 26, 2022 at 6:58 AM Phosra ***@***.***> wrote:
We have not encountered any platform yet that actually incurs such
breakage/mismatch - at the moment, it's primarily a "technically this
should be avoided" by the specification, situation.
If the lack of "realism" is not a deal-breaker, would the project be open
to any commits adding such a feature?
—
Reply to this email directly, view it on GitHub
<#725 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAV7CP663EG5OJICDSGBOLVV7AF7ANCNFSM54PGSORQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
Problems Description
Upstream issues: denoland/deno#15292(, tov/libffi-rs#57).
The only reference to using pointers in function signatures that I found was as follows:
The problem with this is that as
void *
is a data pointer, it is not suitable for usage as a function pointer.See https://c-faq.com/ptrs/generic.html.
The request is that a separate
ffi_function_pointer
is provided, mapping to C'svoid(*)()
.The text was updated successfully, but these errors were encountered: