comp.lang.ada
 help / color / mirror / Atom feed
From: sun-barr!cs.utexas.edu!milano!teenwolf.mcc.com!srogers@ames.arc.nasa.gov  (Steve Rogers)
Subject: Re: C++ vs. Ada -- Is Ada loosing?
Date: 21 Dec 92 16:11:05 GMT	[thread overview]
Message-ID: <1992Dec21.161105.9344@mcc.com> (raw)

In article <EACHUS.92Dec18164915@oddjob.mitre.org> eachus@oddjob.mitre.org (Rob
ert I. Eachus) writes:
>In article <1992Dec18.141448.13862@mcc.com> srogers@teenwolf.mcc.com (Steve Ro
gers) writes:
>
>   I'm not sure this is true; the Barnes Ada book has LOTS of examples that
>   violate the LRM...
>
>   Which edition?  The first edition was published before the ANSI (83)
>standard was finalized.  However, it wasn't really Ada 80, more like
>81 1/2.
>

The edition I am looking at is the 3rd edition.  Two examples:  The
FRAME program on page 325 violates LRM 9.1.4 - the type of the task
cannot be used as a typemark within the task itself.  It's easy to
see what the program means, but it doesn't comple.  There is a task
example on page 311 that has nested accepts for the same entry which
violates LRM 9.5(8).  Again, its clear what the program intends, but
it has been simplified in a way that keeps it from compiling.  These
are the latest ones I have noticed.  It seems to me that it would be
better to include such details in examples (certainly after several
hundered pages) so that the student/reader learns to see Ada and
the LRM as a consistent whole, rather than a lot of nit-picky
rules that get in the way.

I'm assuming that these things have been left in on purpose and
reflect a particular approach to teaching rather than simple
oversight. This simplification is consistent with the practice
I have seen in my CS education (addressed in my previous post)
and it is the 3rd edition, after all.  It is not my intent
to critisize this book - I bought the first edition and I'll
probably buy the 4th edition.  I'm addressing a particular
method of teaching CS.  The piecemeal approach is not as good
as a wholistic approach. I think students need to learn to
see the language as a consistent wholistic system, rather than
a hodge-podge box of semantic tools.  I think it is easier to
see this aspect of programming languages in Ada than most
others.  This is why I think it makes a good first language,
despite its complexity (just leave off tasks at first).

-- 
| Steven Rogers  MCC/ESL  3500 West Balcones Drive
| Austin, Texas 78759-6509  (512) 338-3691 srogers@mcc.com

         reply	other threads:[~1992-12-21 16:11 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-12-18 21:49 C++ vs. Ada -- Is Ada loosing? Robert I. Eachus
1992-12-21 16:11 ` Steve Rogers [this message]
1992-12-31 17:48   ` Mark Meyer
1993-01-04 15:22     ` agate!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!milano!teenwol
2019-08-08 11:39       ` branr62
  -- strict thread matches above, loose matches on Subject: below --
2021-02-01  5:43 Mark Bayern
1992-12-30  4:01 Michael Feldman
1992-12-29 16:11 Charles H. Sampson
1992-12-28 15:23 Jim Withrow
1992-12-23 22:18 Michael Feldman
1992-12-21 12:56 Morris J. Zwick
1992-12-18 21:48 Michael Feldman
1992-12-18 18:11 agate!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!csc.ti.com!til
1992-12-18 14:14 zaphod.mps.ohio-state.edu!cs.utexas.edu!milano!teenwolf.mcc.com!srogers
1992-12-18  4:06 Richard A. O'Keefe
1992-12-14 19:35 Pascal Obry
1992-12-13  7:17 news
1992-12-11 12:42 agate!spool.mu.edu!uwm.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mkso
1992-12-11  1:55 Alex Blakemore
1992-12-10 21:54 agate!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!darwin.sura.net!convex!
1992-12-10 16:22 pitt.edu!dsinc!netnews.upenn.edu!prijat!guinness.cs.uofs.edu!beidler
1992-12-08 13:57 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.e
1992-12-07 21:16 Jorge Luis Diaz-Herrera
1992-12-07 19:40 Dag Bruck
1992-12-06 22:56 Gregory Aharonian
1992-12-06 20:12 news
1992-12-05  0:17 Mark A Biggar
1992-12-05  0:15 Kurt Olender
1992-12-04 20:18 happy.colorado.edu!srheintze
2019-08-08 15:23 ` robin.vowels
2019-08-12 15:47   ` Shark8
replies disabled

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