comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Address attribute
Date: 1997/11/05
Date: 1997-11-05T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680000511970727050001@news.ni.net> (raw)
In-Reply-To: 63p32j$fr2$1@flood.weeg.uiowa.edu


In article <63p32j$fr2$1@flood.weeg.uiowa.edu>, nospam@somewhere.ia.us
(Robert S. White) wrote:

>In article <345FD3FB.74A32F4A@academic.truman.edu>, v025@academic.truman.edu 
>says...
>>
>>Could anyone post an example where the address attribute is used to set
>>a varible to a specfic location in memory(a.k.a the text buffer).  The
>
>  Not quite an attribute.  Just use "use at".

In Ada 83, it is correct that one doesn't use the attribute form:

declare
   Text : Text_Buffer;
   for Text use at A;
begin

But this syntax is inconsistent with the rest of the language, for example

declare
   type T is delta 0.01 range 0.0 .. 100.0;
   for T'Small use 0.01;
begin

Why treat the syntax of address specification any different?  The syntax
was indeed changed in Ada 95, and the form above has been deprecated.

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




  reply	other threads:[~1997-11-05  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-04  0:00 Address attribute Chad R. Meiners
1997-11-04  0:00 ` Matthew Heaney
1997-11-05  0:00 ` Robert S. White
1997-11-05  0:00   ` Matthew Heaney [this message]
1997-11-07  0:00     ` Robert S. White
replies disabled

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