3 ms·
I guess using setjmp/longjmp to implement something like try-catch in C is something everyone does when they discover this the first time. I did. But I was awar
by panzi 12y ago
I guess using setjmp/longjmp to implement something like try-catch in C is something everyone does when they discover this the first time. I did. But I was aware that it isn't a good idea, I just wanted to try it. It was some time between 13 and 11 years ago. I guess other computer science students did the same since the 80ies?
- userbinator 12y agoThe most interesting use of setjmp/longjmp I've seen is in QEMU, which uses them to implement coroutines.