Re: Ada syntax

ddavenpo@redwood.DN.HAC.COM (Darren C Davenport)
1 Feb 1996 21:45:03 -0500

          From comp.compilers

Related articles
Possible to write compiler to Java VM? (I volunteer to summarize) (Peter Seibel) (1996-01-17)
Re: Possible to write compiler to Java VM? (1996-01-29)
Re: Possible to write compiler to Java VM? (1996-01-29)
Re: Possible to write compiler to Java VM? (1996-01-30)
Re: Ada syntax (1996-02-01)
Re: Ada syntax ddavenpo@redwood.DN.HAC.COM (1996-02-01)
Re: Ada syntax (Ken & Virginia Garlington) (1996-02-03)
| List of all articles for this month |

From: ddavenpo@redwood.DN.HAC.COM (Darren C Davenport)
Newsgroups: comp.compilers,comp.lang.ada
Date: 1 Feb 1996 21:45:03 -0500
Organization: Hughes Aircraft Company
References: 96-01-037 96-01-100 96-01-116 96-01-130
Keywords: Ada, syntax

Norman H. Cohen <> wrote:
> When an Ada compiler rejects my source, it is because compile-time
> consistency checks have caught me trying to do something that does
> not make sense. I am grateful to have had the mistake caught before
> I wasted hours debugging. I am far more frustrated by C compilers
> that happily compile code containing the kind of errors that an Ada
> compiler would have caught.

Daniel J. Salomon ( wrote:
: I would bet that a lot of the code that you wrote and was rejected by
: an Ada compiler was not that illogical or unsafe. I bet that most of
: it was actually pretty reasonable.

: Ada's philosophy seems to be, "When in doubt, forbid it." As a
: result, a programmer can spend a lot of time turning sensible safe
: code into code that religiously observes all of Ada rules.

I must be missing something here. I've never had that much trouble
writing Ada programs. The rules are not obtuse. I've always found
that sensible safe code and code that religiously obverves all the Ada
rules are one and the same. That statement just doesn't jibe with my
experience in using Ada. It's like saying that the compiler should
use situational ethics to decide if the code is correct.

: C's philosopy seems to be, "When in doubt, permit it. It just might
: be correct." The freedom that this gives programmers to create new
: ways of solving problems may be one of the reasons that C remains so
: popular, despite the fact that it it unquestionably unsafe.

Having programmed in both C and Ada, I completely disagree that C
provides more capability to create new ways of solving problems (might
create new problems though).

Darren Davenport

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.