Article View: comp.lang.modula2
Article #3753Redundant import
From: Hal Chambers
Date: Wed, 19 Aug 1987 14:54
Date: Wed, 19 Aug 1987 14:54
16 lines
1073 bytes
1073 bytes
In some recent news articles I noticed the following type of constructs: DEFINITION MODULE abc; FROM IO IMPORT Open, Close, File, Read, Write; ... IMPLEMENTATION MODULE abc; FROM IO IMPORT Open, Close, File, Read, Write; ... It is not necessary to repeat the imports in the implementation module since the all declarations of the definition module are automatically known to the implementation module. The implementation module only needs to import names which are to be hidden from the definition module. Hal Chambers
Technical Details
Message-ID:
<802@newton.physics.purdue.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!mimsy!oddjob!gargoyle!ihnp4!inuxc!iuvax!pur-ee!newton.physics.purdue.edu!halShow 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!seismo!mimsy!oddjob!gargoyle!ihnp4!inuxc!iuvax!pur-ee!newton.physics.purdue.edu!hal From: hal@newton.physics.purdue.edu (Hal Chambers) Newsgroups: comp.lang.modula2 Subject: Redundant import Message-ID: <802@newton.physics.purdue.edu> Date: Wed, 19-Aug-87 10:54:02 EDT Article-I.D.: newton.802 Posted: Wed Aug 19 10:54:02 1987 Date-Received: Sat, 22-Aug-87 07:32:27 EDT Organization: Purdue Univ. Phys Dept, W.Lafayette, IN Lines: 16