From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Bob Duff Newsgroups: comp.lang.ada Subject: Re: New to Ada, why these warning messages? Date: Sat, 02 Jan 2016 16:03:58 -0500 Organization: A noiseless patient Spider Message-ID: <8737ufzoap.fsf@theworld.com> References: <87ziwnddyz.fsf@jester.gateway.pace.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="2fe43c8b72467d8691a45b56cebaa39a"; logging-data="31518"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dEw8cU4DnDAiHs7rNDvAL" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:nw2qG7pcTrWNDPaZf1UNP9IaiLY= sha1:lVXG6Pk04u3SjUz++mNY/nq/vOI= Xref: news.eternal-september.org comp.lang.ada:28982 Date: 2016-01-02T16:03:58-05:00 List-Id: Paul Rubin 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