home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!munnari.oz.au!metro!ob1!uws.edu.au!A.Maclean
- From: A.Maclean@uws.edu.au (Andrew J. P. Maclean)
- Subject: Re: INHERITED: what are the advantages
- Message-ID: <A.Maclean.28.726875741@uws.edu.au>
- Lines: 43
- Sender: news@uws.EDU.AU
- Organization: University of Western Sydney Office of the V-C
- References: <29505@oasys.dt.navy.mil>
- Date: Tue, 12 Jan 1993 21:55:41 GMT
-
- In article <29505@oasys.dt.navy.mil> roth@oasys.dt.navy.mil (Pete Roth) writes:
- >Path: ob1!metro!seagoon.newcastle.edu.au!news.cs.uow.edu.au!sol.deakin.OZ.AU!munnari.oz.au!spool.mu.edu!darwin.sura.net!dtix!oasys!roth
- >From: roth@oasys.dt.navy.mil (Pete Roth)
- >Newsgroups: comp.lang.pascal
- >Subject: INHERITED: what are the advantages
- >Message-ID: <29505@oasys.dt.navy.mil>
- >Date: 11 Jan 93 13:30:13 GMT
- >Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
- >Organization: The David Taylor Model Basin
- >Lines: 21
- >There's not much in the BP7 docs about using the reserved word
- >INHERITED, although it is used in place of all previously fully
- >qualified method invocations. For example, in place of
- >
- >CONSTRUCTOR TDerived.Init ;
- > BEGIN
- > TBase.Init
- > ...
- >
- >the new "example" is
- >
- >CONSTRUCTOR TDerived.Init ;
- > BEGIN
- > INHERITED Init
- > ...
- >
- >How is this new model an advantage?
- >- - - - - - - - - - - - - - - - - - - - - - - - - -
- >Grace & peace
- >Pete roth@oasys.dt.navy.mil
- >"Easy for me, difficult for you." - Senor Wences.
-
-
- I find it a convenience as I sometimes forget the name of the base class!
- In a more serious vein, it strikes me that it is quite a useful synatctic
- convenience.
- +----------------------------------+-------------------------------+
- | Andrew J. P. Maclean | |
- | University Planner | |
- | University of Western Sydney | Ph: +61 (02) 678 7848 |
- | PO Box 1000, St Marys, NSW 2760 | Fax: +61 (02) 678 7804 |
- | Australia | e-mail: a.maclean@uws.edu.au |
- +----------------------------------+-------------------------------+
-