🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2597

Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)

#2597
From: Robert A Duff
Date: Tue, 10 Oct 1995 19:00
25 lines
1764 bytes
In article <45cj8d$red@ixnews3.ix.netcom.com>,
Mike Rubenstein <miker3@ix.netcom.com> wrote:
>	Finally, it is absurd to make elaborate security checks on debugging 
>	runs, when no trust is put in the results, and then remove them in 
>	production runs, when an erroneous result could be expensive or 
>	disasterous.  What would we think of a sailing enthusiast who wears 
>	his life-jacket when training on dry land but takes it off as soon as 
>	he goes to sea>
>
>From C, A, R, Hoare in "Hints on programming language design" in 

The analogy is bogus, IMHO.  Constraint checks don't save lives in the
same way as life jackets.  If the program gets Constraint_Error, what is
the pilot of the airplane supposed to do?!

Constraint checks just give the programmer a better idea of where to
start debugging.  So, IMHO, turning checks on during debugging, and off
(if necessary for speed), during production runs, makes perfect sense to
me.  Note the "if necessary".  Real-time systems care about time.  If
checking code is fast enough (and a good compiler will remove most
checks), then sure, leave it turned on.  But don't be fooled into
thinking that will make the system work properly in the presence of
bugs.

- Bob
Technical Details
Message-ID: <DG8y40.BMz@world.std.com>
Path: arc1-ca.pugleaf.net!news.kei.com!world!bobduff
References: <44hcri$rsm@theopolis.orl.mmc.com> <DFyAJF.KpC@research.att.com> <DG1yzI.8Ln@mv.mv.com> <45cj8d$red@ixnews3.ix.netcom.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2,comp.lang.modula3,comp.lang.c,comp.lang.c++,comp.lang.ada
Path: arc1-ca.pugleaf.net!news.kei.com!world!bobduff
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Report on defect in M2 vs C (Was Modula-2, Modula-3, C or C++)
Message-ID: <DG8y40.BMz@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
References: <44hcri$rsm@theopolis.orl.mmc.com> <DFyAJF.KpC@research.att.com> <DG1yzI.8Ln@mv.mv.com> <45cj8d$red@ixnews3.ix.netcom.com>
Date: Tue, 10 Oct 1995 19:00:00 GMT