python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I register a simple callback function and pass arguments to that function?
What I would like to do is :
a simple function "register_function" allowing a user to indicate a callback function to call (that this user has implemented)
when calling that function with &...
Martin Denion
Votes: 0
Answers: 1
Nopass procedure pointer passed between derived types causes Segmentation fault
I want to pass a procedure pointer between two classes in modern Fortran.
this procedure pointer should
be called from within the second object
access the first ojects' components, without having it ...
Federico Perini
Votes: 0
Answers: 2
How to handle class function pointer
I want to be able to use a member variable to hold the address a function to call
I got the error:
cannot convert 'void (TestClass::*)(bool)' to 'void (*)(bool)' in
assignment
TestClass.cpp
#include...
Charles Plante
Votes: 0
Answers: 1
Accessing private member function via Lambda
In a project, I have a C-API which uses C-style function pointers as callbacks. In one of those callbacks, I need to access a private function of an object Foo. Note that the API-call is done within a...
moerker
Votes: 0
Answers: 1