3 ms·
I was looking for coroutines. Modula had them, but I couldnt find them here. Just a note I mean coroutines, not preemptive threads. Here is how it looks like i
by srean 4y ago
I was looking for coroutines. Modula had them, but I couldnt find them here. Just a note I mean coroutines, not preemptive threads.
Here is how it looks like in Modula-2.
https://www.modula2.org/reference/isomodules/isomodule.php?m=COROUTIN.DEF https://www.modula2.org/reference/isomodules/isomodule.php?m...
- mikewarot 4y agoI did coroutines under Turbo Pascal wayyyyy back in the 1980s[1]. It's really just a matter of copying the stack and some book-keeping. Free Pascal has threads. [1] https://www.pcorner.com/list/PASCAL/TASKER4.ZIP/TASKER.PAS/ https://www.pcorner.com/list/PASCAL/TASKER4.ZIP/TASKER.PAS/