Phil Budne wrote in
<202303101630.32AGU2OD008070(a)ultimate.com>:
|ron(a)ronnatalie.com wrote:
|> Multilevel breaks are as bad as goto with regard to structure violation.
|
|Back when I was in compilers (so long ago, that it was the DEC PDP-10
|FORTRAN compiler(*)) my recall is that break/continue never generated
|irreducible flow graphs, as goto can:
|
|https://en.wikipedia.org/wiki/Control-flow_graph#Reducibility
|
|I still remember the days when you could find C code written by PASCAL
|programmers,[.]
|littered[.]
I love this.
|with condition variables on loops, and if
|statements to not execute the tail of the loop body if the loop
|condition was false.
|
|(*) The FORTRAN compiler was written in BLISS-10, which had labeled
|statements, and a "leave <label>" construct which was only legal
|inside the labeled statement:
|
|http://www.bitsavers.org/pdf/dec/pdp10/TOPS10/DEC-10-LBRMA-A-D_BLISS-10_\
|Programmers_Manual_Ver_4_Feb74.pdf#page=42
--End of <202303101630.32AGU2OD008070(a)ultimate.com>
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)