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
If you don't do this then we can't call varargs functions at all.
It complicated the code having to add an extra wrapper struct just to check if a function was correctly loaded.
Calling the public version of the symbol and grabbing a reference to it that outlives the Library is unsafe, so users are at their own risk if using that, and I think that's fine, but let me know if you disagree.
#1931 changed the visibility of all the function pointer fields in the generated
libloading
wrapper struct from private to public.However, in #1846 (comment), a convincing argument was made that these fields should remain private for safety reasons.
#1931 doesn't seem to discuss the safety concerns; I'm just wondering what the thought process was there 🙂
The text was updated successfully, but these errors were encountered: