home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!teaching.cs.adelaide.edu.au!jmwoithe
- From: jmwoithe@teaching.cs.adelaide.edu.au (JM WOITHE)
- Newsgroups: comp.lang.pascal
- Subject: Local types in TP6
- Message-ID: <9209030205.AA12052@dougal.teaching.cs.adelaide.edu.au>
- Date: 3 Sep 92 17:35:44 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Lines: 27
-
- Hi all.
-
- 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).
-
- I was wondering whether others have, or whether this is an undocumented
- feature, or one which is described in one or two obscure lines
- somewhere? Does it have any nasty side-effects? Or have I just missed
- something obvious?
-
- In case you're wondering, the place of the local type was in a view's
- valid procedure, which needed to GetData() a specific owned view.
-
- jon.
-
- --
- >>>>>>>>>********************<<<<<<<<<
- _____________________________________________________________________
- | | |
- | Jonathan Woithe | e-Mail to jmwoithe@cs.adelaide.edu.au |
- |____________________________|________________________________________|
- | |
- | ** What's Yellow and dangerous? .... 42! |
- |_____________________________________________________________________|
-