🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3737

Re: some questions about modula2

#3737
From: David Hiebeler
Date: Thu, 13 Aug 1987 21:57
26 lines
1562 bytes
References:


Oops.  I answered 3 and called it 2.  Oh well.
I just compiled something which included these type definitions:
TYPE P = RECORD
	   x,y : integer;
         END;
     Q = P;
--and the compiler gave me no trouble about it.

2. (Really 2 this time) Modules can export anything, even things which
they have imported.  I did this in order to make an InOut module, as
we did not have one here.  Instead, we had 'io' which has some C-type
routines (printf, scanf, etc. along with the type File and the vars
Input & Output).  So my InOut module imports File,Input,Output,Open,
and Close from 'io' and simply exports those things 'as is', plus
my own set of procedures (WriteLn, WriteReal, etc.).

I hope that helps some!  I'm not very organized, as you might have noticed.

                             -D.H.
----
David Hiebeler       hiebeler@csv.rpi.edu
Chatham, NY         "Illusions, Richard!  Every
(also Troy, NY)      bit of it illusions!"
Technical Details
Message-ID: <16@rpicsb8>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!rutgers!nysernic!rpicsb8!csv.rpi.edu!hiebeler

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!cmcl2!rutgers!nysernic!rpicsb8!csv.rpi.edu!hiebeler
From: hiebeler@csv.rpi.edu (David Hiebeler)
Newsgroups: comp.lang.modula2
Subject: Re: some questions about modula2
Message-ID: <16@rpicsb8>
Date: Thu, 13-Aug-87 17:57:57 EDT
Article-I.D.: rpicsb8.16
Posted: Thu Aug 13 17:57:57 1987
Date-Received: Sat, 15-Aug-87 10:30:50 EDT
Sender: nobody@rpicsb8
Reply-To: hiebeler@csv.rpi.edu (David Hiebeler)
Organization: RPI CS Dept, Troy, New York
Lines: 23
Keywords: modula2, type, vars