home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / pascal / 5176 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.6 KB

  1. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!teaching.cs.adelaide.edu.au!jmwoithe
  2. From: jmwoithe@teaching.cs.adelaide.edu.au (JM WOITHE)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Local types in TP6
  5. Message-ID: <9209030205.AA12052@dougal.teaching.cs.adelaide.edu.au>
  6. Date: 3 Sep 92 17:35:44 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Lines: 27
  9.  
  10. Hi all.
  11.  
  12. Last night, I came across an application where a type was only needed
  13. inside one procedure.  I tried a local type declaration, and to my
  14. surprise, it worked!  I don't recall *any* mention of the possibility
  15. of local types in any of the manuals (I do know that local types
  16. are not allowed in standand pascal).
  17.  
  18. I was wondering whether others have, or whether this is an undocumented
  19. feature, or one which is described in one or two obscure lines
  20. somewhere?  Does it have any nasty side-effects?  Or have I just missed
  21. something obvious?
  22.  
  23. In case you're wondering, the place of the local type was in a view's
  24. valid procedure, which needed to GetData() a specific owned view.
  25.  
  26. jon.
  27.  
  28. -- 
  29.         >>>>>>>>>********************<<<<<<<<<
  30.  _____________________________________________________________________
  31. |                            |                                        |
  32. | Jonathan Woithe            | e-Mail to jmwoithe@cs.adelaide.edu.au  |
  33. |____________________________|________________________________________|
  34. |                                                                     |
  35. | ** What's Yellow and dangerous? .... 42!                            |
  36. |_____________________________________________________________________|
  37.