🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3877

Imports in definition and implementation modules

#3877
From: fred sullivan
Date: Wed, 07 Oct 1987 13:37
20 lines
1477 bytes
As I promised some time ago, I wrote to N. Wirth to ask whether
identifiers imported into the definition module should be known in the
implementation module, or should be reimported.

His answer follows:

"Concerning your question about imports in definition modules, I have
been of the opinion that the corresponding implementation module adopts
those identifiers (and associated data) that are declared in the
definition module itself, but no more.  In this case, it is indeed
necessary to import client modules again in the implementation module,
if identifiers declared in it are referenced."

I yield.

Fred Sullivan
Department of Mathematical Sciences
State University of New York at Binghamton
Binghamton, New York  13903
Email: sullivan@marge.math.binghamton.edu
Technical Details
Message-ID: <733@bingvaxu.cc.binghamton.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sunybcs!bingvaxu!marge.math.binghamton.edu!sullivan

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sunybcs!bingvaxu!marge.math.binghamton.edu!sullivan
From: sullivan@marge.math.binghamton.edu (fred sullivan)
Newsgroups: comp.lang.modula2
Subject: Imports in definition and implementation modules
Message-ID: <733@bingvaxu.cc.binghamton.edu>
Date: Wed, 7-Oct-87 09:37:22 EDT
Article-I.D.: bingvaxu.733
Posted: Wed Oct  7 09:37:22 1987
Date-Received: Sat, 10-Oct-87 07:51:15 EDT
Sender: news@bingvaxu.cc.binghamton.edu
Reply-To: sullivan@marge.math.binghamton.edu (fred sullivan)
Distribution: world
Organization: Department of Mathematical Sciences, SUNY-Binghamton
Lines: 20