Yendor: Depends on the status of your love/hate relationship with forward declarations...Hmmm ... as I recall the structure of a Pascal Program, it looks like this ...
\n program Prog\n procedure x\n begin\n end\n procedure y\n begin\n end\n begin\n (* main program goes here *)\n end.
The forward declaration could be used to allow procedure x to call procedure y (otherwise mutual recursion is really difficult), but all procedures still have to come before the main (at least in standard Pascal ... I'm sure most people didn't write programs in purely standard Pascal).
Then again, maybe my memory is just deficient. (They say memory is the second thing to go ... I forget what the first is).