Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!ucbcad!ucbvax!decvax!tektronix!oresoft!randy From: randy@oresoft.UUCP (Randy Bush) Newsgroups: comp.lang.modula2 Subject: Re: Question: Logitech Modula-2 and subprogram loading Message-ID: <81@oresoft.UUCP> Date: Wed, 30-Sep-87 20:29:19 EDT Article-I.D.: oresoft.81 Posted: Wed Sep 30 20:29:19 1987 Date-Received: Mon, 5-Oct-87 02:52:25 EDT References: <969@daimi.UUCP> Reply-To: randy@oresoft.UUCP (Randy Bush) Organization: Oregon Software, Portland OR Lines: 13 Keywords: Logitech Modula-2/86, subprograms, argument passing Summary: Pass data to subprograms via shared modules holding data 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