-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access reference objects in native function #3312
Comments
@peter-jerry-ye yes, thanks for pointing out. Seems it should be |
Maybe it should be |
OK, though the parameter type of native function is rarely set as |
It solves the issue. Thank you. |
Welcome. |
Feature
I'd like to be able to access reference objects in native function with GC proposal (the apis in
gc_export.h
are great). Currently with signature(r)
only if the type is betweenREF_TYPE_NULLREF
andREF_TYPE_FUNCREF
(btw I'm not sure if the comparison is correct ). It would be great if anything betweenREF_TYPE_HT_NULLABLE
andREF_TYPE_NULLFUNCREF
is supported.Benefit
We can integrate better with gc proposal in terms of FFI (for example, no need to serialize/deserialize a structure just to modify a field
Implementation
I do not have a plan of implementation yet, and I'm not sure if it possible.
Alternatives
N.A.
The text was updated successfully, but these errors were encountered: