Thread View: comp.lang.modula2
1 messages
1 total messages
Started by David Hiebeler
Thu, 13 Aug 1987 21:57
Re: some questions about modula2
Author: David Hiebeler
Date: Thu, 13 Aug 1987 21:57
Date: Thu, 13 Aug 1987 21:57
26 lines
1562 bytes
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!"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads