r/programming • u/lelanthran • Sep 09 '26
Implementation of GCC's Nested Functions (vs. C++ Lambdas)
https://uecker.codeberg.page/2026-09-05.html
19
Upvotes
r/programming • u/lelanthran • Sep 09 '26
View all comments
Show parent comment
2
u/Nobody_1707 Sep 11 '26
I believe the compiler thunks it before you convert it to a function pointer. So instead of getting a pointer directly to the code, you get a pointer to a function that passes the context pointer to the actual function.