I've known about dlopen() for a long time, how come I only recently used it in a program for the first time? super fun and handy!
-
-
This complicates the implementation of FDPIC (dynamic libraries on non-MMU systems, a thing that actually exists) because function pointers have to be two words under that ABI so that they know the module they "came from"
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
POSIX requires object-to-function pointer conversion to be well-defined, as an extension of C
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This hasn’t been true since 2011. Behavior regarding this was changed in C++ to implementation defined to fix this very issue. I brought it up with
@icculus regarding SDL2’s API a few years back and found out it didn’t matter because of the C++11 changeover. -
(I believe C99 made this change which is why we got it magically in 11 :P)
End of conversation
New conversation -
-
-
[citation needed]
-
AFAICT function pointer to void pointer conversion is defined in POSIX and exactly for this purpose. See the RETURN VALUE section under the specification of dlsym. https://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html …
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.