From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Unrecognized attribute 'ref in GNAT
Date: 1999/01/13
Date: 1999-01-13T00:00:00+00:00 [thread overview]
Message-ID: <F5It2L.6tE.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 369bb407.18423120@news.nacamar.de
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
prev parent reply other threads:[~1999-01-13 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-12 0:00 Unrecognized attribute 'ref in GNAT Oliver Hilgendorf
1999-01-12 0:00 ` David C. Hoos, Sr.
1999-01-13 0:00 ` Tucker Taft [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox