From: Simon Wright <simon.j.wright@mac.com>
Subject: Behaviour of Version attribute
Date: Sat, 17 Feb 2007 17:16:21 +0000
Date: 2007-02-17T17:16:21+00:00 [thread overview]
Message-ID: <m2zm7cn1qy.fsf@mac.com> (raw)
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.
reply other threads:[~2007-02-17 17:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox