home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3258 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.6 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!dog.ee.lbl.gov!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  2. From: jlg@cochiti.lanl.gov (Jim Giles)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Small Language Wanted
  5. Message-ID: <1992Aug28.153844.2934@newshost.lanl.gov>
  6. Date: 28 Aug 92 15:38:44 GMT
  7. References: <H.3lvmyc56w&A@lionbbs.bs.open.de> <17gsgnINN903@network.ucsd.edu> <9224014.17999@mulga.cs.mu.OZ.AU> <1992Aug27.151505.19860@hubcap.clemson.edu> <9224102.1936@mulga.cs.mu.OZ.AU> <1992Aug28.102630.1@vxdesy.desy.de>
  8. Sender: news@newshost.lanl.gov
  9. Organization: Los Alamos National Laboratory
  10. Lines: 19
  11.  
  12. In article <1992Aug28.102630.1@vxdesy.desy.de>, pawlak@vxdesy.desy.de writes:
  13. |> [...]
  14. |> Pardon me, but does C have any I/O? It seems to me that all it has are
  15. |> functions with side-effects... Having things that 'can be implemented'
  16. |> instead built-in features leads to: 1) having them implemented by various
  17. |> people in incompatible ways, 2) making the programs larger, and thus harder
  18. |> to read, as any program using such thing has to declare it first.
  19.  
  20. C's I/O is every bit as standardized as Fortran's in that the functions
  21. which are referred to here are defined as part of the language's required 
  22. library support.  Since Fortran I/O is also *usually* supported by compiler
  23. generated library calls, and since ANSI C allows compliant compilers
  24. to special case standard functions anyway (by inlining them, etc. - provided
  25. it has reliably determined that no user replacements have been made),
  26. this makes C's I/O as built-in as Fortran's.  Which is actually a better
  27. design depends on what you're trying to do.
  28.  
  29. -- 
  30. J. Giles
  31.