home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6641 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!uniwa!uniwa!usenet
  2. From: j.laidman@cowan.edu.au (Jeremy Laidman)
  3. Newsgroups: comp.lang.pascal
  4. Subject: TP7 improved encapsulation?
  5. Date: 17 Nov 92 00:48:42 GMT
  6. Organization: The University of Western Australia
  7. Lines: 16
  8. Distribution: world
  9. Message-ID: <jeremy.721961322@scorpion.ac.cowan.edu.au>
  10. Reply-To: j.laidman@cowan.edu.au (Jeremy Laidman)
  11. NNTP-Posting-Host: scorpion.ac.cowan.edu.au
  12.  
  13.  
  14. TP6 introduced object encapsulation with the PRIVATE keyword.  The problem
  15. is that it only hides the details to the unit level.  Can anyone who's seen
  16. TP7 tell me if that has been tightened to the object level?
  17.  
  18. Actually, the ideal would be to have a PUBLIC keyword, where by default all
  19. attributes are hidden within the unit, and only accessible via method calls.
  20. One would be able to override this with a PUBLIC section.  This would make for
  21. a more object oriented language.  Any comments?
  22.  
  23. ---------------------------------------------------------------------
  24. Jeremy Laidman, Computer Support Officer
  25. Department of Computer Science                 Phone: (61 9) 370 6648
  26. Edith Cowan University                         Fax:   (61 9) 370 2910
  27. Perth, Western Australia                       j.laidman@cowan.edu.au
  28. ---------------------------------------------------------------------
  29.