comp.lang.ada
 help / color / mirror / Atom feed
* Access-To-Object-Type question.
@ 1996-04-24  0:00 Frank Falk
  1996-04-25  0:00 ` Norman H. Cohen
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Falk @ 1996-04-24  0:00 UTC (permalink / raw)


I am reading Ada As a Second Language, second edition and have a
question about section 8.3, Access-To-Object-Type Declarations.
What is the purpose of these?  Can someone give me an example?
It looks like I'm declaring pointers to variables declared in the
same location.
Thanks in advanced.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Access-To-Object-Type question.
  1996-04-24  0:00 Access-To-Object-Type question Frank Falk
@ 1996-04-25  0:00 ` Norman H. Cohen
  0 siblings, 0 replies; 2+ messages in thread
From: Norman H. Cohen @ 1996-04-25  0:00 UTC (permalink / raw)


In article <317EEBB4.5C18@chicago.aae.com>, Frank Falk
<falk@chicago.aae.com> writes: 

|> I am reading Ada As a Second Language, second edition and have a
|> question about section 8.3, Access-To-Object-Type Declarations.
|> What is the purpose of these?  Can someone give me an example?

Keep reading.  Section 8.5, "The Use of Access Types," gives 16 pages of
examples.

|> It looks like I'm declaring pointers to variables declared in the
|> same location.

I assume that by "in the same location" you mean in the same piece of Ada
code.  The short fragments in Section 8.3 are just there to show you what
access types can and cannot point to, and when constructs such as X.all
can be used as constants and as variables.  They do not illustrate the
typical use of access types in programs.  (The examples in Section 8.5 do
that.)  In typical uses, it is not known at the point at which an
access value is used that it points to a particular object.

--
Norman H. Cohen    ncohen@watson.ibm.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-04-25  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-24  0:00 Access-To-Object-Type question Frank Falk
1996-04-25  0:00 ` Norman H. Cohen

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