From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_40,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0123581076a0cf3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-07 22:10:55 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!nntpa!cbnewsi!cbnewsj!cbnewsl!willett From: willett@cbnewsl.cb.att.com (david.c.willett) Subject: Re: Ada ad in Embedded Systems Programming stinks Organization: AT&T Bell Laboratories Date: Tue, 6 Sep 1994 13:46:15 GMT Message-ID: References: <34g5v3INN6q2@phage.cshl.org> Date: 1994-09-06T13:46:15+00:00 List-Id: >From article <34g5v3INN6q2@phage.cshl.org>, by pjm@isis.cshl.org (Pat Monardo): > In article <34ecqc$b5q@source.asset.com>, > Michael M. Bishop wrote: >>some development work on some NASA applications in which I was forced to >>write in C. In C, of course, if you want to supply an OUT or IN OUT >>parameter as an actual, you have to pass its address. C compilers >>couldn't care less whether or not you actually pass an address. (I think >>ANSI C compilers give you a *warning* - big deal: it still accepts the >>code). If you forget to put the address operator on the parameter and, > > Now I understand why languages are religions. Listening to an Ada > person describe C is like listening to a Christian describe Hinduism. > Remember, C is a language, not an environment. If want to impose > discipline on your C code, then find a tool that supports your > religion. If you allow warnings to stay in your code, > then you are indeed in need of disciplining, try C++ :) > Pat, you win second place in the "short-sighted statement of the week" contest. The discipline you speak of is of no value to a program's writer. It is of value to those who must read the code. There are many more such folk then there are code writers. Furthermore, you neglect C's intrinsic low-level structure which makes warnings not all bad. Sometimes, even legitimate and safe C code will generate warnings. So it is quite hard to find a tool the "supports your religion" if your religion happens to be something like Ada's environment. <<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Dave Willett AT&T Advanced Technology Systems Greensboro, NC USA When short, simple questions have long, complex answers -- your organization's in trouble. Adapted from "In Search of Excellence"