On Mon, 4 Dec 2023, Martin Uecker wrote: > > The key feature of lambdas (which failed to make it into C23) for this > > purpose is that you can't convert them to function pointers, which > > eliminates any need for trampolines. > > And also makes them useful only for template-like macro programming, > but not much else. So my understanding was that this needs to beĀ > addressed at some point.
Where "addressed" probably means some kind of callable object that stores more than just a function pointer in order to be able to encapsulate both the code address of a lambda and the context it needs to receive implicitly. So still not needing trampolines. -- Joseph S. Myers jos...@codesourcery.com