home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1832 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
  3. From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
  4. Subject: Re: Nested functions (was: Re: Zero-length structures and pointer comparisons)
  5. Message-ID: <1992Dec17.204522.2211@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: MAXTAL P/L C/- University Computing Centre, Sydney
  9. References: <9235019.15484@mulga.cs.mu.OZ.AU> <24413@alice.att.com> <BzBHn4.26J@ssesco.com>
  10. Date: Thu, 17 Dec 1992 20:45:22 GMT
  11. Lines: 25
  12.  
  13. In article <BzBHn4.26J@ssesco.com> nau@ssesco.com (William Nau) writes:
  14. >
  15. >It suggests that they didn't properly test that release.  Given
  16. >a decent design, it's not asking that much out of a high level
  17. >language.  It does amaze me that this wonderful object oriented
  18. >language does not allow for nested functions.
  19. >
  20.  
  21.     Some OO people claim nested functions are anathema to
  22. good OO design. I have read the arguments, they relate to
  23. cleanly dividing the problem up, and removing coupling.
  24.  
  25.     Nested function have an implicit interface
  26. (bad design concept) to their enclosing scope.
  27.  
  28.     Not being a religious OO convert, and finding
  29. in practice I could use nested functions here and there,
  30. I would support their introduction, however.
  31.  
  32.  
  33. -- 
  34. ;----------------------------------------------------------------------
  35.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  36.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  37. ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  38.