comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Preelaborable address clause?
Date: 1999/02/12
Date: 1999-02-12T00:00:00+00:00	[thread overview]
Message-ID: <7a3qmo$e66$4@plug.news.pipex.net> (raw)
In-Reply-To: 36C20210.4C8B494B@icon.fi

Niklas Holsti wrote in message <36C20210.4C8B494B@icon.fi>...
|Rod Chapman wrote:
|>
|> Does anyone know if it's possible to construct a Pre-Elaborable
|> Address representation clause?
|>
|> I find that
|>
|>   A : Integer
|>   for A'Address use System.Storage_Elements.To_Address(16#00001000#);
|>
|> if rejected when pragma Preelaboreate is applied to the enclosing
|> unit, since To_Address is not a static function (LRM 10.2.1(7))
|
|Probably you already rejected this possibility, but I'll state
|it anyway: if System.Address is not a private type on your system,
|you could supply a direct literal of that type, instead of a
|To_Address conversion. Of course, it would not be portable.


But, since System.Storage_Elements.To_Address is implementation-dependent
anyway, portability is not an issue.

I would suggest (to Rod) that if your compiler does have a private
System.Address type (and does not support any other means of supplying a
static address to an address representation clause), you try another
compiler.

|Niklas Holsti
|Working at but not speaking for Space Systems Finland Ltd.

-------------------------------------------
Nick Roberts    "The Prophylactic Didactic"
-------------------------------------------








  reply	other threads:[~1999-02-12  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-10  0:00 Preelaborable address clause? Rod Chapman
1999-02-10  0:00 ` Niklas Holsti
1999-02-12  0:00   ` Nick Roberts [this message]
1999-02-14  0:00     ` robert_dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox