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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a80190e584a29ef9,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Behaviour of Version attribute Date: Sat, 17 Feb 2007 17:16:21 +0000 Organization: Pushface Message-ID: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1171732582 10278 62.49.19.209 (17 Feb 2007 17:16:22 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 17 Feb 2007 17:16:22 +0000 (UTC) Cancel-Lock: sha1:VuqahDuK+/bdArmOFnYpP1gjelI= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (darwin) Xref: g2news2.google.com comp.lang.ada:9354 Date: 2007-02-17T17:16:21+00:00 List-Id: I've been exploring the Version attribute and finding some behaviour I didn't expect with GNAT (GPL 2006 and earlier versions). It seems that GNAT only considers top-level library packages. Given package Version is end Version; procedure Version.Impl; with Ada.Text_IO; use Ada.Text_IO; procedure Version.Impl is begin Put_Line (Ada'Version); Put_Line (Ada'Body_Version); Put_Line (Ada.Text_IO'Version); Put_Line (Ada.Text_IO'Body_Version); Put_Line (Version'Version); Put_Line (Version'Body_Version); Put_Line (Version.Impl'Version); Put_Line (Version.Impl'Body_Version); end Version.Impl; I was surprised to get this output: $ ./version-impl 9c7dd3ea 9c7dd3ea 9c7dd3ea 9c7dd3ea 371fdad7 371fdad7 371fdad7 371fdad7 This must make it hard for GLADE to validate consistency? I'm actually using Ada95 here, but Annex E doesn't seem different as far as this issue is concerned.