3 ms·
The coroutine hack is basically the same as Simon Tatham’s https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html https://www.chiark.greenend.org.uk/~sgta
by fanf2 2y ago
The coroutine hack is basically the same as Simon Tatham’s https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
Simon’s description dates from 2003 https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=9890c7a57a12c3c611ee0396474604e540a65dd3 https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=9...
And it has been used in PuTTY since before the start of its version control history in 1999.
And if you don’t like curly braces, Bournegol has been a thing since the 7th Edition unix shell in the 1970s https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/mac.h https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh...