Bart van den Broek wrote:
Gotos have use for automatically generated code, for example the re2c Lexer generator.
I don't know this program, but e.g. flex doesn't generate any gotos, even tough it generates C where gotos are somewhat more common than in Pascal, but instead uses a switch (case) statement. (Actually, the flex output does contain a few gotos, but funnily in the hand-written code which is just copied into the output. So I suppose they could be replaced in this code just as well as in any other code.)
Frank