Sujet : Re: encapsulating directory operations
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.lang.cDate : 08. Jun 2025, 16:08:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1024910$3tdrq$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
On Sun, 8 Jun 2025 17:02:08 +0200
Bonita Montero <
Bonita.Montero@gmail.com> wibbled:
Am 08.06.2025 um 10:55 schrieb Muttley@DastardlyHQ.org:
>
You can of course use setjmp & longjmp in C but depending on how many levels
up you jump they could be more trouble than they're worth. I think I've only
ever used them once.
>
That's makes a lot of work and it's really ugly. And you need global
jump_buf-s for that.
Its no different to C++ exceptions except obviously no destructors are called
so there's no chance to do a tidy up at each stack level. Also jumps arn't
limited to lower to higher stack frames jumps, they can jump about all over
the place. Whether thats useful or not I can't say. I've never needed it.