From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Mariner 1 / FORTRAN bug
Date: Fri, 9 Aug 2019 09:47:11 +0300
Date: 2019-08-09T09:47:11+03:00 [thread overview]
Message-ID: <gr4j7bF3aiU1@mid.individual.net> (raw)
In-Reply-To: <qij3pe$3m5$1@dont-email.me>
On 19-08-09 09:28 , J-P. Rosen wrote:
> Le 09/08/2019 à 03:57, robin.vowels@gmail.com a écrit :
>>> While it probably didn't cause the failure of a space probe, people
>>> did get bitten by this language design flaw, which is an example of a
>>> single-character error (added, omitted, or changed) that results in valid
>>> code.
>> Single-character errors are still possible, whatever the language.
>>
> Of course, you can type "-" instead of "+" in any language.
>
> But outside of mathematical formulas, can you give an example of
> single-character error in Ada?
I once declared a record type that contained a component, aptly (I
thought) called Address, of type System.Address.
Then, in a certain statement dealing with a record object R of that
type, I mistakenly wrote
R'Address
when I meant
R.Address
Silly me.
I now have a personal coding rule: never use the name Address for a
record component of type System.Address. Perhaps this should be expanded
to forbid using any record-attribute name as a component name; for
example, Size.
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2019-08-09 6:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-12-04 20:18 C++ vs. Ada -- Is Ada loosing? happy.colorado.edu!srheintze
2019-08-08 15:23 ` robin.vowels
2019-08-12 15:47 ` Shark8
2019-08-08 15:40 ` Marina 1 / FORTRAN bug robin.vowels
2019-08-08 17:26 ` Mariner " Jeffrey R. Carter
2019-08-09 1:57 ` robin.vowels
2019-08-09 6:28 ` J-P. Rosen
2019-08-09 6:47 ` Niklas Holsti [this message]
2019-08-09 11:40 ` J-P. Rosen
2019-08-09 15:57 ` Jeffrey R. Carter
2019-08-09 8:38 ` Maciej Sobczak
2019-08-09 14:27 ` Nasser M. Abbasi
2019-08-09 21:05 ` Maciej Sobczak
2019-08-09 21:24 ` Lucretia
2019-08-09 22:03 ` Paul Rubin
2019-08-08 17:51 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox