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

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Small Language Wanted
  5. Message-ID: <9224014.17999@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <H.3lvmyc56w&A@lionbbs.bs.open.de> <17gsgnINN903@network.ucsd.edu>
  9. Date: Thu, 27 Aug 1992 04:52:19 GMT
  10. Lines: 29
  11.  
  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. C++ has a pow() function instead of an ** operator.
  20. Admittedly this is less convenient syntactically,
  21. even though exactly the same code will be generated.
  22. Some people on comp.lang.c++ have been proposing to add
  23. an exponentiation operator to C++.
  24.  
  25. >: > And arrays, C has no true array type
  26. >: > like Fortran does (One must use pointers to pointers ... to pointers).
  27. >: Did you ever try:     int a[12][34];
  28. >: And             :     a[x][y] = somewhat;
  29. >
  30. >Yes, but try to use "a" in a subroutine.
  31.  
  32. void subroutine(int a[12][34]) {...}
  33.  
  34. If there are problems, could you please explain them better?
  35.  
  36. -- 
  37. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  38. This .signature virus is a self-referential statement that is true - but 
  39. you will only be able to consistently believe it if you copy it to your own
  40. .signature file!
  41.