4 ms·
No, because we also don't know what the program does if it is called because it is Turing-complete.
by gavinhoward 2y ago
No, because we also don't know what the program does if it is called because it is Turing-complete.
- two_handfuls 2y agoI’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.