View Single Post
Old 12-01-2018, 03:31 AM   #28
Senior Member
Join Date: Jul 2014
Posts: 3,862
Likes: 668 (478 Posts)

Originally Posted by edit View Post
Event loop

Due to the predominance of graphical user interfaces, most modern applications feature a main loop. The get_next_message() routine is typically provided by the operating system, and blocks until a message is available. Thus, the loop is only entered when there is something to process.

function main
while message != quit
message := get_next_message()
end while
end function

holy shit, i'd suspected something like that.. I know what you mean. can't quite explain prop yet
rooey is offline   Reply With Quote