Re: Delegates and C++ FFI lifetimes
You can store the delegate in an array and invoke it by index.
Delegates and C++ FFI lifetimes
I have this runtime written in C++ that allows callbacks for various functionality. In C++ the callbacks are stored as a function pointer together with a void* that is passed as first argument. The void* can be a lot of things, for example the class pointer in C++. However, this is a bit