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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,719ee98cf9f13dec X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: Unrecognized attribute 'ref in GNAT Date: 1999/01/13 Message-ID: #1/1 X-Deja-AN: 432315436 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <369bb407.18423120@news.nacamar.de> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1999-01-13T00:00:00+00:00 List-Id: Oliver Hilgendorf (news@hilgendorf.de) wrote: : GNAT has problems with the statement : Base_Addr : constant System.Address := System.Address'Ref : (16#A000_0000#); : It says that Ref is an unrecognized attribute. With a different : compiler it works just fine. "Ref" is an implementation-defined attribute. Ada 95 defines a function for converting from integer to address in the package System.Storage_Elements. The following should work on any Ada 95 compiler: Base_Addr : constant System.Address := System.Storage_Elements.To_Address (16#A000_0000#); : Oliver -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA