LATER EDIT: After looking them up I found active Oberon objects to be quite heavy and preemptively scheduled. What I liked about Modula-2 coroutines is the control over how heavy a local stack they would own and when would control transfer to them -- not suitable for real parallelism of course. But for ten thousand boids simulating a swarm of bees foraging, returning, waggle dancing, recruiting, and flying out to precise coordinates, coroutines would be pretty good fit.
LATER EDIT: After looking them up I found active Oberon objects to be quite heavy and preemptively scheduled. What I liked about Modula-2 coroutines is the control over how heavy a local stack they would own and when would control transfer to them -- not suitable for real parallelism of course. But for ten thousand boids simulating a swarm of bees foraging, returning, waggle dancing, recruiting, and flying out to precise coordinates, coroutines would be pretty good fit.