3 ms·
I’m confused. That also holds for functions that don’t return a function pointer, so this cannot be a good argument for banning returning function pointers.
by two_handfuls 2y ago
I’m confused. That also holds for functions that don’t return a function pointer, so this cannot be a good argument for banning returning function pointers.
- gavinhoward 2y agoBy program, I mean the function pointer. The caller is not part of the subprogram, but the returned function pointer is, and if the caller runs it, it leaks out, in the same way async and other things do.