home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3220 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.4 KB  |  43 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!gumby!destroyer!gatech!hubcap!mjs
  3. From: mjs@hubcap.clemson.edu (M. J. Saltzman)
  4. Subject: Re: Small Language Wanted
  5. Message-ID: <1992Aug27.151505.19860@hubcap.clemson.edu>
  6. Organization: Clemson University, Clemson SC
  7. References: <H.3lvmyc56w&A@lionbbs.bs.open.de> <17gsgnINN903@network.ucsd.edu> <9224014.17999@mulga.cs.mu.OZ.AU>
  8. Date: Thu, 27 Aug 1992 15:15:05 GMT
  9. Lines: 32
  10.  
  11. In article <9224014.17999@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
  12. >mbk@lyapunov.ucsd.edu (Matt Kennel) writes:
  13. >
  14. >>UweKloss@lionbbs.bs.open.de ( Uwe Kloss) writes:
  15. >>: > In addition, C has nothing equivalent to Fortrans **
  16. >>: > operator nor does it have complex types.
  17. >
  18. >Note however that C++ does have complex types.
  19.                        ^^^^
  20. Complex types can be implemented as a class...
  21.  
  22. >[...]
  23. >>: > And arrays, C has no true array type
  24. >>: > like Fortran does (One must use pointers to pointers ... to pointers).
  25. >>: Did you ever try:     int a[12][34];
  26. >>: And             :     a[x][y] = somewhat;
  27. >>
  28. >>Yes, but try to use "a" in a subroutine.
  29. >
  30. >void subroutine(int a[12][34]) {...}
  31. >
  32. >If there are problems, could you please explain them better?
  33.  
  34. No need to be so contrary.  He's talking about writing subroutine() to
  35. manipulate a generic multidimensional array with size not specified
  36. until runtime.
  37.  
  38.  
  39. -- 
  40.         Matthew Saltzman
  41.         Clemson University Math Sciences
  42.         mjs@clemson.edu
  43.