Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!HI-MULTICS.ARPA!Erstad From: Erstad@HI-MULTICS.ARPA Newsgroups: comp.sys.apollo Subject: Re: Apollo Pascal and Modules Message-ID: <871110185428.296635@HI-MULTICS.ARPA> Date: Tue, 10-Nov-87 13:54:00 EST Article-I.D.: HI-MULTI.871110185428.296635 Posted: Tue Nov 10 13:54:00 1987 Date-Received: Thu, 12-Nov-87 23:05:00 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 14 You certainly can call main module procedures from any module. However, as with any Pascal code tehe procedures you want to call must be declared. The declaration is similar to a FORWARD declaration, except that since the procedures called are outside the non-main compilation unit an EXTERN declaration is used instead You are probably already doing this to declare your non-main procedures to your main program (If not, you should) The above should work, although I've never had the occasion to call a main program procedure from a module. I'm not even sure I can think of a good situation where I would want to do that... Dave Erstad, Honeywell SSED