home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18849 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.8 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!agate!matt
  2. From: matt@physics2.berkeley.edu (Matt Austern)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Passing 2-d arrys to functions
  5. Date: 8 Jan 93 11:11:48
  6. Organization: Lawrence Berkeley Laboratory (Theoretical Physics Group)
  7. Lines: 22
  8. Message-ID: <MATT.93Jan8111148@physics2.berkeley.edu>
  9. References: <C0Hw4n.Hy9@knot.ccs.queensu.ca> <C0H9sA.BGw@newsserver.technet.sg>
  10.     <24568@alice.att.com> <726521188snx@trmphrst.demon.co.uk>
  11. Reply-To: matt@physics.berkeley.edu
  12. NNTP-Posting-Host: physics2.berkeley.edu
  13. In-reply-to: nikki@trmphrst.demon.co.uk's message of 8 Jan 93 12:26:28 GMT
  14.  
  15. In article <726521188snx@trmphrst.demon.co.uk> nikki@trmphrst.demon.co.uk (Nikki Locke) writes:
  16.  
  17. > The confusion between pointers and arrays in C (and C++) is one of the 
  18. > tricky bits. Fervent C++ purists have even been know to say that array
  19. > handling in C++ is completely broken (because it is like that in C), and
  20. > should rarely be used. 
  21.  
  22. I happen to be of this opinion.  I believe that a well-designed array
  23. class is essential, and should be part of the C++ Standard Library.
  24. (Actually, make that several well-designed array classes; probably the
  25. right solution is to have one class for one-dimensional arrays, and
  26. another for multi-dimensional arrays.)  Now that templates are part of
  27. the language, this is more practical than it used to be.
  28.  
  29. I've written my own array classes (I imagine that we all have), but it
  30. would be nice if I could count on arrays being there in every
  31. implementation.
  32. --
  33. Matthew Austern                   Just keep yelling until you attract a
  34. (510) 644-2618                    crowd, then a constituency, a movement, a
  35. austern@lbl.bitnet                faction, an army!  If you don't have any
  36. matt@physics.berkeley.edu         solutions, become a part of the problem!
  37.