Article View: comp.lang.eiffel
Article #1187Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer
From: Larry Weiss
Date: Sun, 24 Mar 1996 01:28
Date: Sun, 24 Mar 1996 01:28
35 lines
2639 bytes
2639 bytes
Peter Seebach wrote: > > In article <31545B86.4CC0@iadfw.net>, Larry Weiss <lfw@iadfw.net> wrote: > >I don't understand. Suppose that I want to substitute my strlen() logic > >for the vendors implementation of strlen() in such a way that not only > >my source's calls on strlen() are affected, but also any 3rd party's > >library's uses of strlen() get the "benefit". How does your technique > >apply to that scenario? > > It doesn't; this is arguably a feature, as this makes them immune to any > mistakes in my implementation of str_len(). > > If you have their source, you patch it. > OK, now we are in sync. I just wanted to know if anyone who used to do that sort of thing was upset with the implementations that choose to use inline techniques at code generation time for one or more standard library functions. I sort of liked the simplicity of the implementations that did all standard library calls with clearly replaceable external functions (and as far as I can see, that technique is still allowed in an implementation), and at the same time, I like the theoretical efficiency of the inlined approach. Looking at it another way, until the C Standard was published, I just looked at the vendor supplied library as a popular example of how one might go about interfacing with a file system, or manipluating strings, etc. I didn't think of the library as a formal part of the C language. Now, of course the standard library is a well defined component of the C language, with the implementation able to know all sorts of things about the semantics of each library function. C suddenly became much larger and complex with the publication of the Standard, in my mind. It would have been nice if the library suite were given a more cohesive design, but I know that the Committee did not want to break the majority of executing pre-Standard-C programs, so that was off their agenda.
Technical Details
Message-ID:
<3154A548.71FF@iadfw.net>Path:
arc1-ca.pugleaf.net!news.iadfw.net!usenetReferences:
<1995Jul3.034108.4193@rcmcon.com> <314DADD4.3DE@oc.com> <4j1gmu$crl@solutions.solon.com> <31545B86.4CC0@iadfw.net> <4j26cn$gh7@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.iadfw.net!usenet From: Larry Weiss <lfw@iadfw.net> Newsgroups: comp.lang.eiffel,comp.lang.c,comp.lang.c++,comp.object,comp.software-eng Subject: Re: Beware of "C" Hackers -- A rebuttal to Bertrand Meyer Date: Sat, 23 Mar 1996 19:28:40 -0600 Organization: customer of Internet America Message-ID: <3154A548.71FF@iadfw.net> References: <1995Jul3.034108.4193@rcmcon.com> <314DADD4.3DE@oc.com> <4j1gmu$crl@solutions.solon.com> <31545B86.4CC0@iadfw.net> <4j26cn$gh7@solutions.solon.com> NNTP-Posting-Host: dal12-25.ppp.iadfw.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (Win16; I)