You could apply the same logic to the Pascal "label" statement. You can (and should) always use a different construct and you could therefore claim that the "label" statement is unnecessary because you cannot think of a situation where there is no alternative - but it exists. And sometimes it is convenient to use. You could even go further and say that the multiplication operator is unnecessary because you can always achieve the same thing through repeated summation. But, of course, it is more convenient to use multiplication.
Forward declared procedures exist in Jensen and Wirth Pascal and they exist for the purpose of allowing the convenience of those who sometimes find it easier or clearer to code an algorithm using mutual recursion. Why do you need a deeper explanation? Tony Whyman MWA Software On 22/12/11 21:24, Timothy Groves wrote: > On 11-12-22 04:04 PM, Anton Shepelev wrote: >> But are "mutually recursive procedures and functions" necessary? > Not at all. But there is no other reason to use forward-declared > procedures that I can think of, and I need *something* to demonstrate > why you might need them. > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal