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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 10db24,fec75f150a0d78f5 X-Google-Attributes: gid10db24,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public From: seebs@solutions.solon.com (Peter Seebach) Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada) Date: 1996/04/22 Message-ID: <4lgdcu$lf5@solutions.solon.com>#1/1 X-Deja-AN: 150823405 references: <4kk9e1$he1@nntp.Stanford.EDU> <01bb2ed2.425fb900$65c2b7c7@Zany.localhost> <317a3715.38162294@nntp.ix.netcom.com> <4lgaeq$l1g@galaxy.ucr.edu> organization: Usenet Fact Police (Undercover) reply-to: seebs@solon.com newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu Date: 1996-04-22T00:00:00+00:00 List-Id: In article <4lgaeq$l1g@galaxy.ucr.edu>, Tom Payne wrote: >Granted, if its an embedded controller in a life-support system, I'd >like every routine to make every effort to muddle through even in the >presence of bizarre hardware faults, etc. In general programs, however, >I'd like them to crash as soon as possible when something is wrong, and >for that reason I've gone back to the i != 10 style for upper limits >on for-loops. But that means it will keep going, possibly for a long time. Better to assert or print warnings. (I am a great fan of debugging messages; many of my programs will cheerfully produce a megabyte or minute or more of warnings and traces from normal operation. A lifesaver when something goes wrong.) -s -- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach. C/Unix wizard -- C/Unix questions? Send mail for help. No, really! Unsolicited email is not welcome, and will be billed for at consulting rates. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html