Sujet : Re: logically weird loop
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 21. Nov 2024, 00:53:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhlspv$ahc9$10@dont-email.me>
References : 1 2
User-Agent : Pan/0.160 (Toresk; )
On Wed, 20 Nov 2024 17:34:34 +0100, Janis Papanagnou wrote:
[*] A friend of mine just recently implemented the code frame for a
roguelike and followed the suggestion of an event based object-oriented
implementation; it worked well, he told me.
The next step would be to use coroutines so the logic of a longer-running
task, which has to wait for other events at multiple points, can be
written in a single linear stream without having to be fragmented into
multiple callbacks.