3 ms·
GNU C supports nested functions. Does that solve it (if you accept GCC lock-in)? https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html https://gcc.gnu.org/o
by eatonphil 11y ago
GNU C supports nested functions. Does that solve it (if you accept GCC lock-in)?
https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
- enriquto 11y agoFrom GCC documentation: "If you try to call the nested function through its address after the containing function exits, all hell breaks loose." I would definitely accept GCC lock-in, but so far GCC does not have this feature. Clang does, hoever, via _Blocks, but the syntax is not very C-like.