home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / std / cplus / 1603 < prev    next >
Encoding:
Text File  |  1992-11-19  |  771 b   |  20 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!microsoft!hexnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: Recursive templates
  5. Message-ID: <1992Nov20.004150.21737@microsoft.com>
  6. Date: 20 Nov 92 00:41:50 GMT
  7. Organization: Microsoft Corporation
  8. References: <Bxu3J4.F93@news.cso.uiuc.edu> <5225@holden.lulea.trab.se>
  9. Lines: 9
  10.  
  11. In article <5225@holden.lulea.trab.se> jbn@lulea.trab.se (Johan Bengtsson) writes:
  12. |N-dimension matrixes should be possible to base on N-1-dimension matrixes,
  13. |with 1-dimensional matrixes (arrays) as the recursion-stopper.
  14. |
  15. |The details are left as an exercise for the reader (:-).
  16.  
  17. Similarly there's the old example of recursively implementing a 2^n times-
  18. the-range LongInt class based on a 2^(n-1) times-the-range implementation.
  19.  
  20.