* What's the point?
@ 1996-08-05 0:00 The Quelisher
1996-08-08 0:00 ` Chad Bremmon
0 siblings, 1 reply; 3+ messages in thread
From: The Quelisher @ 1996-08-05 0:00 UTC (permalink / raw)
If Ada95 allows dereferencing the ".all" call for pointer variables,
then what's the point of even having a ".all" call in the first place?
Is this a carryover from Ada83 or something?
--
*.........................................*
. |/ .
. |\ENDAL .
. WWW => http://www.cs.fsu.edu/~vandyke .
. EMail => kendal@freenet.scri.fsu.edu .
. Pager => (904) 297-6658 .
. .
*.........................................*
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What's the point?
1996-08-05 0:00 What's the point? The Quelisher
@ 1996-08-08 0:00 ` Chad Bremmon
1996-08-10 0:00 ` Robert Dewar
0 siblings, 1 reply; 3+ messages in thread
From: Chad Bremmon @ 1996-08-08 0:00 UTC (permalink / raw)
The Quelisher wrote:
>
It worked exactly the same way in the language
formerly known as Ada.
There is, however, a reason.
__________________
For example:
Pointer_a := pointer_b;
does that mean the contents of pointer a := the
contents of pointer b or does it mean they now
point to the same thing. In Ada, it means that
pointer_a and pointer_b now point to the same
thing. It cannot be automatically dereferenced.
However, if I want to dereference in this
situation, I must use ".all" to dereference
explicitly.
Pointer_a.all := Pointer_B.all;
This will copy the contents of Pointer_b into the
contents of pointer_a.
Chad
> If Ada95 allows dereferencing the ".all" call for pointer variables,
> then what's the point of even having a ".all" call in the first place?
> Is this a carryover from Ada83 or something?
> --
> *.........................................*
> . |/ .
> . |\ENDAL .
> . WWW => http://www.cs.fsu.edu/~vandyke .
> . EMail => kendal@freenet.scri.fsu.edu .
> . Pager => (904) 297-6658 .
> . .
> *.........................................*
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What's the point?
1996-08-08 0:00 ` Chad Bremmon
@ 1996-08-10 0:00 ` Robert Dewar
0 siblings, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1996-08-10 0:00 UTC (permalink / raw)
The Quelisher said
"> If Ada95 allows dereferencing the ".all" call for pointer variables,
> then what's the point of even having a ".all" call in the first place?
> Is this a carryover from Ada83 or something?"
x.all is just like *x in C. The only difference is that in Ada you can
optionally omit the explicit deference if you select a component (e.g.
x.c can be used instead of x.all.c) or if you index an array (e.g.
x(a..b) can be used instead of x.all(a..b))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-08-10 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-05 0:00 What's the point? The Quelisher
1996-08-08 0:00 ` Chad Bremmon
1996-08-10 0:00 ` Robert Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox