comp.lang.ada
 help / color / mirror / Atom feed
From: Bob Duff <bobduff@theworld.com>
Subject: Re: New to Ada, why these warning messages?
Date: Sat, 02 Jan 2016 16:03:58 -0500
Date: 2016-01-02T16:03:58-05:00	[thread overview]
Message-ID: <8737ufzoap.fsf@theworld.com> (raw)
In-Reply-To: 87ziwnddyz.fsf@jester.gateway.pace.com

Paul Rubin <no.email@nospam.invalid> writes:

> Is there a summary somewhere of what Ada added to Pascal?

Mike Woodger told me that chapters 2-6 were supposed to be
(very roughly) the Pascal subset of Ada, and chapters 7-14
were the new stuff.  That's for Ada 83 -- since then, various
things have been added, such as object-oriented features in
chapter 3, which doesn't correspond to Pascal.  I'm talking
about Jensen and Wirth Pascal, not Delphi or other dialects.

Off the top of my head, features in Ada 83 but not Pascal: a more
elaborate type system, dynamic arrays, discriminant-dependent arrays,
bounds are not part of array type, slices, fixed-point types,
user-defined numeric types, aggregates, full coverage rules, better
notion of parameter modes (especially: pass-by-reference allowed for
'in' parameters), packages, private types, limited types, renaming,
multi-tasking, separate compilation(!), generics, representation
clauses, most of the pragmas and attributes.

The AARM has a list at the end of each section of features added since
Ada 83.

>...I also
> haven't understood why the books are so thick, or why Ada has such a
> reputation of being hard to compile.  Any simple summary?  Thanks!

No simple summary.  Ada is a big language, and it's hard to implement.
Other languages are worse in that regard, though -- C++ comes to mind.

If you read the Ada RM (preferably the Annotated version -- AARM), you
will see.  Or for just a taste, read section 3.10.2, and think about how
to implement it.  ;-)

- Bob


  reply	other threads:[~2016-01-02 21:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-01  2:19 New to Ada, why these warning messages? Dale Dellutri
2016-01-01  2:47 ` David Botton
2016-01-01  5:54 ` Jeffrey R. Carter
2016-01-01 21:18   ` Bob Duff
2016-01-01 17:30 ` Dennis Lee Bieber
2016-01-01 20:20 ` Dale Dellutri
2016-01-01 21:24   ` Bob Duff
2016-01-01 21:54     ` Dale Dellutri
2016-01-02 12:45       ` Simon Clubley
2016-01-02 14:21         ` Britt
2016-01-02 15:29           ` Simon Clubley
2016-01-03  7:11         ` J-P. Rosen
2016-01-03  9:32           ` Simon Wright
2016-01-03  9:59           ` Simon Clubley
2016-01-03 14:23             ` David Botton
2016-01-03 15:48             ` J-P. Rosen
2016-01-03 18:03               ` David Botton
2016-01-03 18:20                 ` Pascal Obry
2016-01-03 19:05                   ` David Botton
2016-01-01 23:50   ` Jeffrey R. Carter
2016-01-02 21:05     ` Bob Duff
2016-01-02 22:53       ` Jeffrey R. Carter
2016-01-02 17:59   ` Dennis Lee Bieber
2016-01-02 18:37     ` Paul Rubin
2016-01-02 21:03       ` Bob Duff [this message]
2016-01-02 21:08     ` Bob Duff
replies disabled

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