home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
- From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
- Subject: Re: Small Language Wanted
- Message-ID: <9224014.17999@mulga.cs.mu.OZ.AU>
- Sender: news@cs.mu.OZ.AU
- Organization: Computer Science, University of Melbourne, Australia
- References: <H.3lvmyc56w&A@lionbbs.bs.open.de> <17gsgnINN903@network.ucsd.edu>
- Date: Thu, 27 Aug 1992 04:52:19 GMT
- Lines: 29
-
- mbk@lyapunov.ucsd.edu (Matt Kennel) writes:
-
- >UweKloss@lionbbs.bs.open.de ( Uwe Kloss) writes:
- >: > In addition, C has nothing equivalent to Fortrans **
- >: > operator nor does it have complex types.
-
- Note however that C++ does have complex types.
- C++ has a pow() function instead of an ** operator.
- Admittedly this is less convenient syntactically,
- even though exactly the same code will be generated.
- Some people on comp.lang.c++ have been proposing to add
- an exponentiation operator to C++.
-
- >: > And arrays, C has no true array type
- >: > like Fortran does (One must use pointers to pointers ... to pointers).
- >: Did you ever try: int a[12][34];
- >: And : a[x][y] = somewhat;
- >
- >Yes, but try to use "a" in a subroutine.
-
- void subroutine(int a[12][34]) {...}
-
- If there are problems, could you please explain them better?
-
- --
- Fergus Henderson fjh@munta.cs.mu.OZ.AU
- This .signature virus is a self-referential statement that is true - but
- you will only be able to consistently believe it if you copy it to your own
- .signature file!
-