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