SWI-Prolog / packages-pengines

Pengines: Prolog engines
12 stars 13 forks source link

pengine_event_loop/2 needs a way to thread a state #9

Open torbjornlager opened 10 years ago

torbjornlager commented 10 years ago

Since how you want to react in response to an event depends on the state you are in, pengine_event_loop/2 needs a way to thread a state. Two extra arguments, possibly accessible only via options, are needed.