News for hackers. Stuff that matters.
Re:Let's write a setjmp by bee_rider on Sunday February 12, 2023 @12:55PM (#34765002)
I don’t write much C, but to an outsider like me this is a pretty big improvement.

It is a shame post-test loops aren’t more popular, given the similarity to the assembly they output. Seems more mechanically sympathetic. Oh well, at least it is an excuse to whip out the goto.

Re:Let's write a setjmp by layer8 on Sunday February 12, 2023 @01:09PM (#34765131)
In Pascal, you could do

    repeat
        ...
    until c = 0;
which might be even clearer for this use case.