4 ms·
sure, but that has limitations as well, since gotos can't cross lexical scopes, so you can't introduce variables later on, and it's easy to mess up. Destructor
by mgaunard 1y ago
sure, but that has limitations as well, since gotos can't cross lexical scopes, so you can't introduce variables later on, and it's easy to mess up.
Destructors are a higher-level and safer approach.
- 1718627440 1y ago> since gotos can't cross lexical scopes, so you can't introduce variables later on That's a C++ specific limitation, it works just fine in C.