2026-10-25 18:36 UTC
@peterhoneyman@a2mi.social @jschauma@mstdn.social I dunno, man. The first time I read about longjmp it gave me the heebie-jeebies.
It always seemed like a sop to those first-gen assembler programmers brought up on self-modifying spaghetti code where "go to" reigned supreme. ALTER in COBOL seems like a similar sop. The pre-Dijkstra mob, if you will.
Having said that, I have seen *one* legitimate use of longjmp where no alternative approach seemed possible. Namely "state threads"; a green threads library for C which used it to manage their home-grown stack.
Replies (0)
No replies.