home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 8091 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.1 KB  |  55 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!munnari.oz.au!metro!ob1!uws.edu.au!A.Maclean
  3. From: A.Maclean@uws.edu.au (Andrew J. P. Maclean)
  4. Subject: Re: INHERITED: what are the advantages
  5. Message-ID: <A.Maclean.28.726875741@uws.edu.au>
  6. Lines: 43
  7. Sender: news@uws.EDU.AU
  8. Organization: University of Western Sydney Office of the V-C
  9. References: <29505@oasys.dt.navy.mil>
  10. Date: Tue, 12 Jan 1993 21:55:41 GMT
  11.  
  12. In article <29505@oasys.dt.navy.mil> roth@oasys.dt.navy.mil (Pete Roth) writes:
  13. >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
  14. >From: roth@oasys.dt.navy.mil (Pete Roth)
  15. >Newsgroups: comp.lang.pascal
  16. >Subject: INHERITED: what are the advantages
  17. >Message-ID: <29505@oasys.dt.navy.mil>
  18. >Date: 11 Jan 93 13:30:13 GMT
  19. >Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
  20. >Organization: The David Taylor Model Basin
  21. >Lines: 21
  22. >There's not much in the BP7 docs about using the reserved word
  23. >INHERITED, although it is used in place of all previously fully
  24. >qualified method invocations. For example, in place of
  25. >
  26. >CONSTRUCTOR TDerived.Init ;
  27. >    BEGIN
  28. >        TBase.Init
  29. >        ...
  30. >
  31. >the new "example" is
  32. >
  33. >CONSTRUCTOR TDerived.Init ;
  34. >    BEGIN
  35. >        INHERITED Init
  36. >        ...
  37. >
  38. >How is this new model an advantage?
  39. >- - - - - - - - - - - - - - - - - - - - - - - - - -
  40. >Grace & peace
  41. >Pete                         roth@oasys.dt.navy.mil
  42. >"Easy for me, difficult for you." - Senor Wences.
  43.  
  44.  
  45. I find it a convenience as I sometimes forget the name of the base class!
  46. In a more serious vein, it strikes me that it is quite a useful synatctic
  47. convenience.
  48. +----------------------------------+-------------------------------+
  49. |  Andrew J. P. Maclean            |                               |
  50. |  University Planner              |                               |
  51. |  University of Western Sydney    |  Ph:     +61 (02) 678 7848    |
  52. |  PO Box 1000, St Marys, NSW 2760 |  Fax:    +61 (02) 678 7804    |
  53. |  Australia                       |  e-mail: a.maclean@uws.edu.au |
  54. +----------------------------------+-------------------------------+
  55.