g-frank@gumby.UUCP (01/27/85)
In a recent message, it was asked whether FOR loops in Modula-2 had to execute at least once, like the DO loop in FORTRAN. It is, indeed, pretty unclear from Wirth's description in his book (how many people besides me consider the book a bad advertisement for the language?). I went and compiled a test program and found (phew) that FOR loops with an empty range execute ZERO times. The compiler was Logitech Modula-2/86 on an IBM PC. -- Dan Frank "good news is just life's way of keeping you off balance."