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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9eef6c480abeecf8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Dynamic array allocation and STL equivalents? Date: 11 Feb 2005 19:06:25 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1108127216.221977.60830@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: shell01-e.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1108166785 27591 69.38.147.31 (12 Feb 2005 00:06:25 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 12 Feb 2005 00:06:25 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:8264 Date: 2005-02-11T19:06:25-05:00 List-Id: bdbryant@mail.utexas.edu (Bobby D. Bryant) writes: > On Fri, 11 Feb 2005, brian.b.mcguinness@lmco.com wrote: > > > Back in the mid 1980s, out of curiosity I bought books about a number > > of programming languages, including LISP and Forth. One of these books > > was a turquoise and white paperback about Ada by J.G.P. Barnes. Barnes has also written books about Ada 95. And he's currently writing some articles on the new Ada 2005. >...During > > a summer vacation trip, I read the Barnes book while riding for hours > > down highways in the car. I was impressed with features such as being > > able to overload operators for newly defined types, the exception > > handling facilities, and the ability to write constants in a wide > > variety of bases. My impression was that this was Pascal done right. > > Pascal pretty much _was_ "done right", given its pedagogical purpose. Hmm... Even back in those days, I would want to teach students about encapsulation and information hiding, which Pascal doesn't support very well. And why should students have to deal with static-sized strings? And why have dangling "else", instead of if/else/end if? And why does Read summarily kill the program on bad input? Shouldn't students learn about proper error recovery? Separate compilation? Etc. My impression of Ada in 198x was the same as the original poster -- "Pascal done right". > Others have already answered this, but I'd like to add that your book > is apparently pre- Ada95, so you may want to get a newer book, or at > least consult some on-line sources to see what has changed. Yes. > Here's the Ada95 reference manual: > http://www.adahome.com/rm95/rm9x-toc.html, though it is probably easier > to learn from a book. Yes. As one of the authors of that manual, I definitely agree it's not an easy way to learn the language. Read a textbook instead. - Bob