[fpc-pascal] Coroutines and VirtualAlloc
Ryan Joseph
ryan at thealchemistguild.com
Thu Apr 20 11:17:34 CEST 2017
> On Apr 20, 2017, at 4:06 PM, denisgolovan <denisgolovan at yandex.ru> wrote:
>
> Another example is network-related code (both client and server code).
> Break your huge finite state machines into pipeline stages via coroutines and it gets pretty modular, extensive and simple to reason about.
Nicely encapsulated in that statement. I’m building these big ugly state machines inside my classes and polluting the instance variables with muck. Coroutines would greatly clean this up and with only minimal overhead.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list