Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: dsr@lns598.lns.cornell.edu (Daniel S. Riley)
Subject: Re: What do you think of osf/1?
Date: 1995/06/27	[thread overview]
Message-ID: <DSR.95Jun27150145@lns100.lns.cornell.edu> (raw)
In-Reply-To: danpop.803688760@rscernix


In article <danpop.803827853@rscernix> Dan.Pop@mail.cern.ch (Dan Pop) writes:
Dan.Pop> assert() is, by definition, for those problems that are fixed
Dan.Pop> before the product is shipped.

An assertion is not "for" a particular problem at all, it is an
assertion that a particular condition is true.  The proper use is to
assert that a program invariant has not been violated.  assert()
should be the early warning system for unknown bugs, not a test for a
particular problem.

For development tools like ld, I would *much* rather have assertions
enabled--if ld has a bug, I'd rather get an immediate indication than
have to track down an obscure corruption in the resulting executable.

Dan.Pop> If the developer cannot be sure that he managed to do this
Dan.Pop> before shipping, he will replace assert() with proper error
Dan.Pop> detection and reporting code.  Joe User should _never_ see
Dan.Pop> something looking like "assertion failed...".

So DEC should redefine assert to print out a polite error message?  I
fail to see how that does any good--it is still an incomprehensible
error message.  Whether it says "assertion failed" followed by some
gibberish or "A fatal error has occurred, please submit an SPR to DEC
with this information" followed by some gibberish makes little
difference to me.  Replacing every "assert()" with a more informative
message would be a waste of engineering time, and a undesirable
impediment to free use of assert().

-- 
Dan Riley                          Internet:  dsr@lns598.lns.cornell.edu
Wilson Lab, Cornell University     HEPNET/SPAN: lns598::dsr (44630::dsr)
	      "Distance means nothing/To me." -Kate Bush



  parent reply	other threads:[~1995-06-27  4:00 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-16  4:00 What do you think of osf/1? Mark Saltzman
1995-06-17  4:00 ` Frank Fabbrocino
1995-06-17  4:00 ` Mark Davis
1995-06-17  4:00   ` Jeff Tyler
1995-06-17  4:00   ` Dan Pop
1995-06-19  4:00   ` oberman
1995-06-19  4:00     ` Mark Davis
1995-06-19  4:00   ` J.Brainard
1995-06-17  4:00 ` Saul Tannenbaum
1995-06-19  4:00   ` Joseph B. Gurman
1995-06-19  4:00     ` Saul Tannenbaum
1995-06-21  4:00     ` Peter Graw
1995-06-21  4:00   ` Jerry Waldorf
1995-06-17  4:00 ` Mark Charette
1995-06-18  4:00 ` Wuxu Peng
1995-06-19  4:00   ` Mike Iglesias
1995-06-20  4:00   ` McGonagall burst into the room
1995-06-20  4:00     ` Andrew Gallatin
1995-06-20  4:00       ` Saul Tannenbaum
1995-06-20  4:00       ` Dan Pop
1995-06-21  4:00         ` Daniel S. Riley
1995-06-21  4:00         ` Nick Hill
1995-06-21  4:00         ` Andrew Gallatin
1995-06-21  4:00           ` Dan Pop
1995-06-21  4:00             ` Andrew Gallatin
1995-06-21  4:00               ` Dan Pop
1995-06-21  4:00                 ` Andrew Gallatin
1995-06-22  4:00                 ` Joseph B. Gurman
1995-06-22  4:00                 ` Jyrki Havia
1995-06-22  4:00                   ` Dan Pop
1995-06-23  4:00                 ` Peter da Silva
1995-07-01  4:00                   ` evaldas
1995-07-06  4:00                     ` Michael C Tiernan
1995-07-06  4:00                       ` Michael C Tiernan
1995-07-07  4:00                       ` Dan Hildebrand
1995-06-22  4:00             ` Scott J. Kolodzieski
1995-06-25  4:00               ` Mark Newton
1995-06-26  4:00                 ` Mike Iglesias
1995-06-26  4:00                   ` Dan Pop
1995-06-26  4:00         ` John Kohl
1995-06-27  4:00         ` Daniel S. Riley [this message]
1995-06-27  4:00           ` Dan Pop
1995-06-21  4:00       ` Kurt M. Hockenbury
1995-06-21  4:00         ` Jay Maynard
1995-06-25  4:00           ` Keith DeLong
1995-06-21  4:00     ` Wuxu Peng
1995-06-21  4:00       ` Mike Iglesias
1995-06-21  4:00         ` oberman
1995-06-22  4:00       ` Peter Mayne
1995-06-26  4:00         ` Wuxu Peng
1995-06-27  4:00     ` Daniel S. Riley
1995-06-27  4:00       ` Dan Pop
1995-06-19  4:00 ` Jason K Fry
1995-06-19  4:00 ` Christophe MATHIEU
     [not found]   ` <3s4i5m$ff9@jac.zko.dec.com>
1995-06-20  4:00     ` Trin Tantsetthi
1995-06-20  4:00     ` Christophe MATHIEU
1995-06-20  4:00 ` Carl Harris
1995-06-20  4:00   ` Ed O'Loughlin
1995-06-20  4:00     ` Matthias Dolder
1995-06-20  4:00     ` Sean Donelan
1995-06-21  4:00     ` Carl Harris
1995-06-20  4:00   ` Tim Lucia
1995-06-28  4:00     ` Jon Jenkins
1995-06-29  4:00       ` Saul Tannenbaum
1995-07-03  4:00         ` John Hascall
1995-07-03  4:00           ` Stephen Mullin
1995-06-23  4:00   ` Peter da Silva
1995-06-20  4:00 ` Steve Dale
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox