[comp.lang.modula2] Question: Logitech Modula-2 and subprogram loading

erja@daimi.UUCP (Erik Jacobsen) (09/28/87)

Question:

We are using Logitech Modula-2/86 Rel. 2.00 on IBM ATs with DOS 3.20.

Using the standard module "Program" and its procedure "Call",
it is possible to divide a program into subprograms, which can
then be loaded upon request. How is it possible to pass an argument
to the subprogram, e.g. a filename?

Erik Jacobsen                      (erja@daimi.uucp)
Computer Science Department
University of Aarhus               (Phone: +45 6 12 83 55 ext. 126)
Ny Munkegade, DK-8000 Aarhus
Denmark

randy@oresoft.UUCP (Randy Bush) (10/01/87)

In article <969@daimi.UUCP> erja@daimi.UUCP (Erik Jacobsen) writes:
>Using the standard module "Program" and its procedure "Call",
>it is possible to divide a program into subprograms, which can
>then be loaded upon request. How is it possible to pass an argument
>to the subprogram, e.g. a filename?

Have the multiple program MODULEs all import the same module which holds
the data.  I believe one must tell the Logitech linker not to include the
importee in the subMODULEs, and to use the one in the root module, but I
forget how, sorry.
-- 
randy%oresoft.uucp@tektronix.tek.com                     FidoNet:1/105/6
randy%oresoft.uucp%tektronix.tek.com@relay.cs.net        1+(503) 245-2202