Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
Maintained by go/gitwatcher - Please do not modify manually [ID: 530458]
Maintained by go/gitwatcher - Please do not modify manually [ID: 530406]
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Reactor has historically not supported creating multiple routines and making calls between them. That is, it's not a standalone 'language', it requires a host language (C++) to make the routine calls. That partially changed when support was added for making calls through function pointers, which enabled trampolines . But it still requires some boilerplate code for obtaining the function pointer, and two explicit
Call()
s.It might be feasible to roll this into one. When a lambda function produces a cache the result inline, and make the function pointer call. The more than just inline caching.
Routine
, or even aFunction
, we could automatically first make the call to the lambda,Call<>()
could also take a caching strategy template parameter in case we want