comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Mariner 1 / FORTRAN bug
Date: Fri, 9 Aug 2019 17:57:31 +0200
Date: 2019-08-09T17:57:31+02:00	[thread overview]
Message-ID: <qik55c$i19$1@dont-email.me> (raw)
In-Reply-To: <gr4j7bF3aiU1@mid.individual.net>

On 8/9/19 8:47 AM, Niklas Holsti wrote:
> 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

AIUI, a single-character error in a language design is one that is possible 
regardless of the developer's choice of identifiers. By that criterion, this is 
not a single-character error in the language design. Compare it to =/== in C and 
its descendants.

-- 
Jeff Carter
"[A] brilliant military career that after thirty
years catapulted him to the rank of corporal."
Take the Money and Run
138


  parent reply	other threads:[~2019-08-09 15:57 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
2019-08-09 11:40           ` J-P. Rosen
2019-08-09 15:57           ` Jeffrey R. Carter [this message]
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