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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5894fe67040038b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-07 13:02:06 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Attributes 'Version and 'Body_Version Date: 7 Nov 2001 13:54:20 -0600 Organization: LJK Software Message-ID: References: <9s9iti$g$1@nh.pace.co.uk> <5ee5b646.0111061939.595b61be@posting.google.com> <9sbb1f$2bm$1@plutonium.btinternet.com> <9sboee$42f$1@nh.pace.co.uk> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1005162862 1657 192.135.80.34 (7 Nov 2001 19:54:22 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 7 Nov 2001 19:54:22 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:16014 Date: 2001-11-07T13:54:20-06:00 List-Id: In article <9sboee$42f$1@nh.pace.co.uk>, "Marin David Condic" writes: > It might not hurt for Ada0x to insist that Something'Version and > Something'Body_Version yield a string that is increasing in sort order with > each change. That at least would let you do "<" and ">" comparisons and know > you are still portable. At first glance this sounds like VMS shareable image matching controls that are done manually, where numeric comparisons are possible. But the Ada feature seems to require something like VMS shareable image matching controls that are done automatically, and necessarily allows only equality comparisons. I will not be available to code the fully automatic relationship-comparing version until I finish the required preliminary work on the DWIM subprogram :-). ======= Consider: Something'*Version is required by the standard to change anytime there is a change in a compilation unit referred to by Something. So presume one changes both SubOne and SubTwo and then recompiles Something. Say the compiler takes the next logical sort ordered value. Then what happens if one rolls back SubTwo to what it used to be, but retains the changed version of SubOne ? The result we have is _logically_ between the original and the first modification, but that might be hard to achieve in the sort order. Or what if we make _another_ version that has the original version of SubOne but retains the change to SubTwo ? How does the value of _that_ string relate to the value of the one whose context is vice versa ?