comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst@cts.com>
Subject: Re: Attributes 'Version and 'Body_Version
Date: 09 Nov 2001 16:07:00 -0800
Date: 2001-11-09T16:07:00-08:00	[thread overview]
Message-ID: <yec3d3nij4r.fsf@king.cts.com> (raw)
In-Reply-To: 5ee5b646.0111081953.31e2633c@posting.google.com

dewar@gnat.com (Robert Dewar) writes:
> Keith Thompson <kst@cts.com> wrote in message
> news:<yecbsiekzkl.fsf@king.cts.com>...
> > The version strings used by GNAT look like they might be
> > 32-bit checksums of the source
>                                 ^
>                           sources!!!!!
> 
> It's really important to realize that 'Version is nothing
> like the version number of the source file, it is the
> version of the OBJECT, not the source, and hence depends
> on a whole set of sources.

Here's the RM definition of the 'Version attribute, from E.3(3):

    P'Version     Yields a value of the predefined type String that
                  identifies the version of the compilation unit that
                  contains the declaration of the program unit.

And here's what 10.1(2) has to say about compilation units:

    The text of a program can be submitted to the compiler in one or
    more compilations.  Each compilation is a succession of
    compilation_units.  A compilation_unit contains either the
    declaration, the body, or a renaming of a program unit.  The
    representation for a compilation is implementation-defined.

It certainly looks to me as if 'Version applies to a compilation unit,
and a compilation unit is a part of the text of a program.  The
version of a compilation unit changes whenever the compilation unit
changes in a "semantically significant" way; the phrase "semantically
significant" is explicitly left undefined.

If unit A depends on unit B, a change in B can affect the object
generated for A even if the source of A is unchanged.  I don't see a
requirement for A'Version or A'Body_Version to change when this
happens, though I can see that such a requirement would be useful.

It's likely that I'm missing something obvious, but I don't know what
it is.

-- 
Keith Thompson (The_Other_Keith) kst@cts.com  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Cxiuj via bazo apartenas ni.



  reply	other threads:[~2001-11-10  0:07 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06 20:58 Attributes 'Version and 'Body_Version Marin David Condic
2001-11-07  3:39 ` Robert Dewar
2001-11-07 15:08   ` Marin David Condic
2001-11-07 20:51   ` Tony Gair
2001-11-07 16:45     ` Marin David Condic
2001-11-07 18:32       ` Vincent Marciante
2001-11-07 19:00         ` Marin David Condic
2001-11-07 23:11           ` Robert Dewar
2001-11-08 17:28             ` Stephen Leake
2001-11-08 17:43               ` Larry Kilgallen
2001-11-08 19:03                 ` Marin David Condic
2001-11-08 19:37                   ` Larry Kilgallen
2001-11-09  3:50                   ` Robert Dewar
2001-11-09  3:55                   ` Robert Dewar
2001-11-08 18:55             ` Marin David Condic
2001-11-07 19:54       ` Larry Kilgallen
2001-11-07 21:49         ` Marin David Condic
2001-11-07 23:08     ` Robert Dewar
2001-11-07 22:04 ` Keith Thompson
2001-11-08 16:34   ` Frank
2001-11-09  3:53   ` Robert Dewar
2001-11-10  0:07     ` Keith Thompson [this message]
2001-11-10  2:16       ` Larry Kilgallen
2001-11-11 15:18         ` Marin David Condic
2001-11-12 23:06           ` Tony Gair
2001-11-12 21:51       ` Robert Dewar
2001-11-13  8:07         ` Keith Thompson
2001-11-25 20:49           ` Nick Roberts
2001-11-26  2:30             ` Robert Dewar
2001-11-26  3:31               ` Nick Roberts
2001-11-26 15:42                 ` Robert Dewar
2001-11-26 20:05                   ` Nick Roberts
2001-11-27  3:56                     ` Robert Dewar
2001-11-27 17:51                       ` Nick Roberts
2001-11-28  0:44                       ` Larry Kilgallen
2001-11-28 15:49                         ` Robert Dewar
2001-11-28 16:53                         ` Larry Kilgallen
     [not found]                         ` <5ee5b646.0111280749.77fabe6c@posting.google.coOrganization: LJK Software <PFcoNrf74AeG@eisner.encompasserve.org>
2001-11-29  3:49                           ` Robert Dewar
2001-11-29 11:52                           ` Larry Kilgallen
     [not found]                           ` <5ee5b646.0111Organization: LJK Software <Kg7U2sTGDFyI@eisner.encompasserve.org>
2001-11-30  2:26                             ` Robert Dewar
2001-11-30  2:55                               ` Larry Kilgallen
2001-11-27 17:04                     ` Georg Bauhaus
replies disabled

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