2 ms·
> if you need to perform cleanup, then instead of returning, use goto to jump to a single end-of-function cleanup handler. That assumes that all of the cleanup
by anamax 17y ago
> if you need to perform cleanup, then instead of returning, use goto to jump to a single end-of-function cleanup handler.
That assumes that all of the cleanup is the same and that all of the relevant information that is available at the subroutine's top level.