home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!spool.mu.edu!agate!ames!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!hiyall.enet.dec.com!reagan
- From: reagan@hiyall.enet.dec.com (John R. Reagan)
- Subject: Re: standard for pascal modules?
- Message-ID: <1993Jan4.213210.26930@nntpd.lkg.dec.com>
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organization: Digital Equipment Corporation
- References: <MAX.93Jan4140914@tantalus.uchicago.edu>
- Date: Mon, 4 Jan 1993 21:34:09 GMT
- Lines: 29
-
-
- In article <MAX.93Jan4140914@tantalus.uchicago.edu>, max@tantalus.uchicago.edu (Max Ziff) writes...
- >Is there a standard for separate compilation in pascal? I'm teaching
- >using "Think Pascal" on the Mac, and it has this "unit" and
- >"interface" syntax, but that doesn't seem to be in the 3rd Jensen and
- >Wirth Pascal User Manual and Report. A friend told me the "unit"
- >extensions come from Berkeley and have become a de facto standard.
- >Does anyone know if this is true? Is there a published independant
- >standard for modules?
- >
-
- The Extended Pascal standard includes separate compilation. It
- doesn't look like "units" (which came from UCSD, not Berkeley).
-
- You can order the Extended Pascal standard from the IEEE (order number
- SH13243).
-
- Basically, you use MODULEs to create INTERFACEs using the EXPORT
- declaration. You then use them with the IMPORT declaration.
- It looks alot like Modula-2's syntax. It also has options for
- qualified names, renaming, etc.
-
- ---
- John Reagan
- Digital Equipment Corporation
- reagan@hiyall.enet.dec.com
- Disclaimer: The opinions and statements expressed by me are not
- necessarily those of Digital Equipment Corporation.
- ---
-