From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: geest3+@pitt.edu (Gregg E Economou) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/08 Message-ID: <61eq73$7la@usenet.srv.cis.pitt.edu>#1/1 X-Deja-AN: 278605132 References: <612k6f$i79@news-rocq.inria.fr> <619nmn$4jv$1@goanna.cs.rmit.edu.au> <34392537.AA4A9F96@tonys.ecology.umn.edu> <61c9kl$94l$1@goanna.cs.rmit.edu.au> Organization: University of Pittsburgh Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <61c9kl$94l$1@goanna.cs.rmit.edu.au>, Richard A. O'Keefe wrote: > >I strongly suspect that you don't know what modern Fortran is like. >There is precisely *one* construction present in C which is not >supported as well or better by Fortran, and that is pointer arithmetic. I strongly suspect you dont know what C is like. Go read K&R. >Modules? Fortran has them, C hasn't. C is very simple, and designed such that you can implement things of a higher nature with it if you wish. You can write code that behaves in a particular style in C. >Overloading? Fortran has it, C hasn't. one legitimate arguemtn in a cast of many pointless ones. touche. (need an accent-grave there) >Records? Fortran and C both have them. >Pointers? Fortran and C both have them. >Dynamic allocation? Fortran and C both have them. You're confusing issues of the library with the language. That migth be fine in an HLL like Fortran but in C the library is not part of the language, even if it is standardized and commonly accepted. >Recursive procedures? Fortran and C both have them. >Nested procedures? Fortran has one level of nesting, C has none. >Strings? Fortran has them, C hasn't. But C is lower-level. You can *implement* those things inside a C progam if you like, but dont have to take on the extra weight if you dont. Much more flexible. >Character-oriented IO? Fortran and C both have it. >Record-oriented IO? Fortran has it, C hasn't. C has NO I/O. All I/O in the C libraries is implemented using the basics of the langugae itself in manipulating memory directly. There is no I/O native to the language. There is almost nothing beyond the basics of memory handling, logic, and conditionals in the language itself. The fact that C is used for such a wide variety of things is testimony to the incredible flexibility it has by NOT being bound to things liek I/O. >User defined operators? Fortran has them, C hasn't. >Free-format source form? Fortran and C both have it. >Bitwise operations? Fortran and C both have them. >Control over record layout? Neither language supports this. (Yes, I know > about bitfields, and I also know how extremely weak are the > guarantees you get about them.) see above. > >Why shouldn't you listen to both of us? I am, after all, telling the truth, >as you can easily verify for yourself. only a truth that is based on misdirection. You are obviously mistaken as to what C is and what the C libraries are, and are mixing the two fo them up. >I think perhaps it is time instead that _you_ took your blinkers off. >Fortran is not my favourite language by a long way, but it has come >a *long* way in the last 20 years, and is by most criteria a more >'modern' language than C. a point to be thought of- Fortan is a high level language, C is not. The utility of C is that it is very universally portable and applicable- because the laguage itself assumes only the presence of memory, a processing capability to perform logical and arithmetic operations, and the ability to perform conditional executions. The manipulation of memory is the implementation of almost all higher-level fucntionality in the C libraries. The beauty fo this is that it ends up that C programs very closely resemble the actual activity fo the machine and low-level routines with a high-level structure and syntax, and lead to a much simpler and more portabel coding than an assembly lends, but is still very close down there to the hardware. However, it is not ncessarily the best thing for _every_ job. For example, renaming a list of files would be much simpler to accomplish with a short shell script, and would be much more logically done that way than with a C program designed explicitly for such a purpose. anwyays.. lets NOT start another language war, eh? isildur