home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1815 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!rbbb.Eng.Sun.COM!chased
  2. From: chased@rbbb.Eng.Sun.COM (David Chase)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Nested functions (was: Re: Zero-length structures and pointer comparisons)
  5. Date: 16 Dec 1992 23:47:32 GMT
  6. Organization: Sun
  7. Lines: 18
  8. Message-ID: <livg0kINN8ar@exodus.Eng.Sun.COM>
  9. References: <24400@alice.att.com> <9235019.15484@mulga.cs.mu.OZ.AU> <24413@alice.att.com>
  10. NNTP-Posting-Host: rbbb
  11.  
  12. In article <24413@alice.att.com> ark@alice.UUCP () writes:
  13. >The first time I tried to use gcc's nested functions,
  14. >my program dumped core -- apparently due to a bug in gcc.
  15. >The next version of gcc I tried worked.  This suggests
  16. >that the implementation isn't exactly trivial.
  17.  
  18. See other post.  In our (Olivetti Research Center, now defunct)
  19. experience, nested functions were not hard, though not trivial (is the
  20. compiler that you use made up only of trivial pieces?  Somehow, I
  21. doubt it.  Keep things in proportion.)  We implemented C-interoperable
  22. nested functions in one (68k-only) release of Modula-3, and it was
  23. a relative no-brainer compared to most other parts of a modern
  24. compiler.  Keep in mind that gcc 2.* says "beta-test" all over it, so
  25. I am not surprised if a shiny new non-standard feature doesn't work
  26. perfectly.
  27.  
  28. David Chase
  29. Sun
  30.