home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5209 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.2 KB

  1. Path: sparky!uunet!dtix!relay!afterlife!adm!news
  2. From: stone@hilbert.math.grin.edu (John David Stone)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Local types in TP6
  5. Message-ID: <32360@adm.brl.mil>
  6. Date: 4 Sep 92 22:47:15 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 18
  9.  
  10.  
  11.         JM Woithe writes:
  12.  
  13. >          Last night, I came across an application where a type was
  14. >  only needed inside one procedure.  I tried a local type declaration,
  15. >  and to my surprise, it worked!  I don't recall *any* mention of the
  16. >  possibility of local types in any of the manuals (I do know that local
  17. >  types are not allowed in standand pascal).
  18.  
  19.         Alas, what you know is wrong:  Under Standard Pascal, labels,
  20. constants, types, variables, and procedures and functions may all be
  21. declared/defined inside any procedure or function for local use.  A version
  22. of Pascal that _doesn't_ support all of these is non-conforming.
  23.  
  24. ------  John David Stone - Lecturer in Computer Science and Philosophy  -----
  25. --------------  Manager of the Mathematics Local-Area Network  --------------
  26. --------------  Grinnell College - Grinnell, Iowa 50112 - USA  --------------
  27. --------  stone@math.grin.edu - (515) 269-3181 - stone@grin1.bitnet  --------
  28.