4 ms·
Well, many document-processing tasks also require something like an infinite loop. For example, parsing of an XML document naturally resembles an event loop, w
by IlliOnato 4y ago
Well, many document-processing tasks also require something like an infinite loop.
For example, parsing of an XML document naturally resembles an event loop, with each token being an equivalent of an event.
Although usually there is a natural end to this loop, so you have not "while(1)" but "while (not EOF)" or something, which helps avoid some bugs, but I believe a compiler turns it into an infinite loop anyway, and breaks it on these conditions.