Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!think!bloom-beacon!mit-eddie!rutgers!dayton!ems!pwcs!zycad!kjb From: kjb@zycad.UUCP (Kevin Buchs) Newsgroups: comp.sys.apollo Subject: Apollo Pascal and Modules Message-ID: <678@zycad.UUCP> Date: Sat, 7-Nov-87 00:23:55 EST Article-I.D.: zycad.678 Posted: Sat Nov 7 00:23:55 1987 Date-Received: Wed, 11-Nov-87 03:58:18 EST Organization: ZYCAD, Oakdale, MN Lines: 23 I have been working on modifying some old Apollo Pascal code and in adding new features I have been trying to make it more modular. By this I mean the use of seperate source code files and the "Module" declaration. Under this implementation, there is a "main" module, which is the one headed with Program, instead of Module. One may call any procedure/function defined in any non-main module from any module including the main module. There is one thing I don't understand: Why can one not make calls to procedures/functions in the "main" module from one of the non-main modules? I am using the trivial workaround now of having a 1 line main module which calls a routine in a non-main module. In other words, I took all the code out of the main module and put in into a non-main module, where I can call it from any other non-main module. Are there other more clever workarounds, perhaps involving the use of extern qualifiers? -- Kevin Buchs 3500 Zycad Dr. Oakdale, MN 55109 (612)779-5548 Zycad Corp. {rutgers,ihnp4,amdahl,umn-cs}!meccts!nis!zycad!kjb