home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / std / cplus / 1590 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!gumby!wupost!cs.uiuc.edu!sparc0b!pjl
  3. From: pjl@cs.uiuc.edu (Paul Lucas)
  4. Subject: Re: Recursive templates
  5. Message-ID: <Bxvu9t.Csv@cs.uiuc.edu>
  6. Sender: news@cs.uiuc.edu
  7. Organization: University of Illinois at Urbana-Champaign
  8. References: <83733@ut-emx.uucp> <1992Nov16.220526.21566@borland.com> <Bxu3J4.F93@news.cso.uiuc.edu> <1992Nov17.172152.14255@borland.com>
  9. Distribution: usa
  10. Date: Tue, 17 Nov 1992 22:53:52 GMT
  11. Lines: 30
  12.  
  13. In <1992Nov17.172152.14255@borland.com> pete@borland.com (Pete Becker) writes:
  14.  
  15. >In article <Bxu3J4.F93@news.cso.uiuc.edu> pl2440@meibm31.cen.uiuc.edu (Paul Jay Lucas) writes:
  16. >>
  17. >>*****>    Has anyone got a *real* justification for this?  This is a very
  18. >>    obfuscated way of writing factorial.
  19.  
  20. >    Has anyone got a *real* justification for recursive functions?  They
  21. >just provide a very obfuscated way of writing factorial().
  22.  
  23. *****>    Some algorithms are naturally recursive; most (other) people
  24.     would agree that factorial is naturally expressed recursively.
  25.  
  26. >    The point of my original posting was simply that there is no work to
  27. >be done to specify how such things work, because they already work in exactly
  28. >the way you'd expect.
  29.  
  30. *****>    Huh?  I don't understand that paragraph.
  31.  
  32. >Whether there are useful things that can be done with
  33. >such constructs is left as an exercise for the reader...
  34.  
  35. *****>    No, the point is whether it should be mandated that recursive
  36.     templates be part of the standard or not.  If they're trivial to
  37.     implement in compilers, then go ahead; if not, then I think
  38.     justification is in order.
  39. -- 
  40.     - Paul J. Lucas                University of Illinois    
  41.       AT&T Bell Laboratories        at Urbana-Champaign
  42.       Naperville, IL            pjl@cs.uiuc.edu
  43.