comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Library model in Ada. was Re: Difference between ADA and c++
Date: 1997/08/24
Date: 1997-08-24T00:00:00+00:00	[thread overview]
Message-ID: <dewar.872431430@merv> (raw)
In-Reply-To: 5tnu9s$f6t@drn.zippo.com


Nasser says

<<Now, I was reading this below, from the above paper:

"1) Separate Compilation and Library Management

   Ada: An Ada compiler is required to enforce consistency and
strong type checking across separate compilation.  The concept of
                                                   ^^^^^^^^^^^^^^
a program library is built into the language, based on separately
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
compilable modules called "library units" whose names are part of
a hierarchical name space."

GNAT, probably the most popular Ada95 compiler, does NOT use the
program library model, but uses the code-source model, i.e. the
traditional model.

So, what going on here? who is wrong, and who is right?>>



The quoted sentence is somewhat historical at this stage, but if you
take a sufficiently abstract view of what a library is (note that the
Ada 95 reference manual substitutes the term "compilation environment",
for this term), then the statement is in fact accurate.

The big change in Ada 95 is to make it much clearer that the library
(compilation environment) is an implementatoin depenbdent abstract
concept, not some kind of file or collections of files (necessarily).

The GNAT source approach (now used by other compilers, including
those that use the Intermetrics front end), does in fact conform
with the requirements in Ada 83, although one needs to be a bit
more imaginative in reading the Ada 83 RM.

Certainly in terms of the differences between Ada and C++, the point
made in the quoted section is 100% valid and important.





  reply	other threads:[~1997-08-24  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-22  0:00 Difference between ADA and c++ Mr Doshi
1997-08-23  0:00 ` Robert Munck
     [not found] ` <01bcafdf$50784b80$7774d8cc@fatman>
1997-08-23  0:00   ` Nasser
1997-08-24  0:00     ` Robert Dewar
     [not found]       ` <340262F6.32D3@mcs.com>
     [not found]         ` <dewar.872614961@merv>
     [not found]           ` <34043769.29EF@gsfc.nasa.gov>
1997-08-27  0:00             ` Robert Dewar
     [not found]         ` <3403FFBA.1FDC@amst.co.at>
     [not found]           ` <34045A8A.52E7@gsfc.nasa.gov>
1997-08-28  0:00             ` Reasons why Ada is no success yet Joachim Schroeer
1997-08-28  0:00         ` Difference between ADA and c++ Samuel Mize
     [not found]         ` <5u3ckv$6bo$1@goanna.cs.rmit.edu.au>
1997-08-29  0:00           ` Michael Young
1997-08-23  0:00   ` Library model in Ada. was " Nasser
1997-08-24  0:00     ` Robert Dewar [this message]
1997-08-24  0:00     ` Dale Stanbrough
1997-08-24  0:00       ` Robert Dewar
1997-08-25  0:00   ` Brian Rogoff
     [not found]     ` <dewar.872607709@merv>
     [not found]       ` <JSA.97Aug26152737@alexandria.organon.com>
1997-08-27  0:00         ` Robert Dewar
1997-08-27  0:00           ` Jon S Anthony
     [not found]         ` <Pine.SGI.3.95.970826174002.24873B-100000@shellx.best.com>
1997-08-27  0:00           ` Jon S Anthony
     [not found]     ` <340340C1.72A7@pseserv3.fw.hac.com>
     [not found]       ` <Pine.SGI.3.95.970826175504.24873D-100000@shellx.best.com>
     [not found]         ` <3403A080.2A07@pseserv3.fw.hac.com>
1997-08-27  0:00           ` Jon S Anthony
1997-08-27  0:00           ` Brian Rogoff
     [not found]     ` <5u0hj7$enj$1@goanna.cs.rmit.edu.au>
1997-08-27  0:00       ` Jon S Anthony
replies disabled

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