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