Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!purdue!decwrl!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpcllmr!mark From: mark@hpcllmr.HP.COM (Mark Rozhin) Newsgroups: comp.lang.pascal Subject: calling MAIN from a procedure Message-ID: <950017@hpcllmr.HP.COM> Date: 3 Feb 89 20:37:52 GMT References: <459@loligo.cc.fsu.edu> Organization: Hewlett-Packard Calif. Language Lab Lines: 7 sorry, in pascal the outer block (main) is a special animal. often there are initializations that happen there behind your back (like opening input and output). create a procedure 'main' and call it from the outer block. mr