comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Attributes 'Version and 'Body_Version
Date: Wed, 7 Nov 2001 14:00:30 -0500
Date: 2001-11-07T19:00:31+00:00	[thread overview]
Message-ID: <9sc0cf$76a$1@nh.pace.co.uk> (raw)
In-Reply-To: W4fG7.11237$ym4.493547@iad-read.news.verio.net

O.K. You can get there from here. Sort of. If you dutifully record every
version string of a released component you at least know the valid history
and you can check against it. But I still think this is not as useful.

Example:

package Somepackage is    --  Version 1.0 (my number)
    A, B, C : Integer ;
end Somepackage ;

package Somepackage is    --  Version 2.0 (my number)
    A, B, C : Integer ;
    D, E, F : Integer ;
end Somepackage ;

So assuming I know something about when features are introduced and that my
project (attempts to) maintain upward compatibility and all that, what, if
anything, might I know about Version 1.5? If I know that D, E and F were
introduced in 2.0 and my calling module detects 2.0 *or greater* then it is
O.K. to use D, E and F. If it sees a module that is *less than* 2.0, it
knows not to use D, E and F. If, for some reason, a 1.5 version were to
exist out there, I'd know by the order that it wasn't compatible.

Granted, this is a contrived example and the compiler would catch any
invalid use of D E and F (thank you, Ada.) But one can easily imagine cases
that are more complex in which an ordered version string would help.

It isn't a perfect thing and it isn't a substitute for good configuration
management and knowing what is going on with one's software, but I could
imagine situations where this might be helpful if it were ordered. You can
always Roll Your Own and this may, in some circumstances, be a better idea.
(What causes the 'Version or 'Body_Version to be incremented? Every time you
edit the file? Every time you compile it? Every time there is some semantic
difference? What if you revert to a prior version of the file? What if you
need to be compiler-independent? Etc?) The weaknesses of 'Version &
'Body_Version may make it impractical for some uses - but making it Ordinal
would probably have been a good thing. (Any reason *not* to make it
Ordinal?)

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Vincent Marciante" <marciant_remove@li.net> wrote in message
news:W4fG7.11237$ym4.493547@iad-read.news.verio.net...
>
> But you do know the order order of earlier versions and can store that
list
> in each new version othe code.  You also know that any version that was
> not a past version (not in the stored list) must be a new version and can
> then
> deside what to do in that case (this case will only come up when a past
> version of the code is attempting to work with a newer version )
>






  reply	other threads:[~2001-11-07 19:00 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 [this message]
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
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