home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7847 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.lang.pascal
  2. 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
  3. From: reagan@hiyall.enet.dec.com (John R. Reagan)
  4. Subject: Re: standard for pascal modules?
  5. Message-ID: <1993Jan4.213210.26930@nntpd.lkg.dec.com>
  6. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  7. Organization: Digital Equipment Corporation
  8. References:   <MAX.93Jan4140914@tantalus.uchicago.edu>
  9. Date: Mon, 4 Jan 1993 21:34:09 GMT
  10. Lines: 29
  11.  
  12.  
  13. In article <MAX.93Jan4140914@tantalus.uchicago.edu>, max@tantalus.uchicago.edu (Max Ziff) writes...
  14. >Is there a standard for separate compilation in pascal?  I'm teaching
  15. >using "Think Pascal" on the Mac, and it has this "unit" and
  16. >"interface" syntax, but that doesn't seem to be in the 3rd Jensen and
  17. >Wirth Pascal User Manual and Report.  A friend told me the "unit"
  18. >extensions come from Berkeley and have become a de facto standard.
  19. >Does anyone know if this is true?  Is there a published independant
  20. >standard for modules?
  21.  
  22. The Extended Pascal standard includes separate compilation.  It
  23. doesn't look like "units" (which came from UCSD, not Berkeley).
  24.  
  25. You can order the Extended Pascal standard from the IEEE (order number
  26. SH13243).
  27.  
  28. Basically, you use MODULEs to create INTERFACEs using the EXPORT
  29. declaration.  You then use them with the IMPORT declaration.
  30. It looks alot like Modula-2's syntax.  It also has options for
  31. qualified names, renaming, etc.
  32.  
  33. ---
  34. John Reagan
  35. Digital Equipment Corporation
  36. reagan@hiyall.enet.dec.com
  37. Disclaimer:  The opinions and statements expressed by me are not
  38.              necessarily those of Digital Equipment Corporation.
  39. ---
  40.