C Builtin Funxions

herndon at umn-cs.UUCP herndon at umn-cs.UUCP
Fri Apr 25 12:19:00 AEST 1986


  I feel compelled to go on record as being VERY MUCH AGAINST
having reserved procedure names in C.  For those of us who have
ever written stand-alone code for PDP-11s, VAXen, ..., it is
a simple matter, as things stand, to compile our programs,
and then have them linked with our own versions of 'putc',
'read', etc. stashed in stand-alone libraries.
  One of the (in my opinion) great strengths of the C language
is that it does not have 'built-in' functions.  As a result,
it has somehow managed to avoid the imbroglio that Pascal
has gotten into.  If one user doesn't like the interface that
'printf' provides, or a whole bunch of users don't, they
are free to write their own functions and use those instead.
In addition, porting the C compiler to a different OS on the
same machine only requires that the libraries be re-written
(almost always).  Building those functions into the language
implies that there will be much code for special casing those
functions.
  On the flip side, the language may not be as efficient.
If the compiler writers want to allow these procedures to
be built-in to allow in-line procedures, I think this should
be an option (DEFAULT=OFF), and then the capabilities of
the language will be compromised as little as possible.



More information about the Comp.lang.c mailing list