comp.lang.ada
 help / color / mirror / Atom feed
* address/access/pointer confusion
@ 2004-10-20 13:56 Hans Van den Eynden
  2004-10-20 16:55 ` Martin Krischik
  2004-10-20 18:51 ` skidmarks
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Van den Eynden @ 2004-10-20 13:56 UTC (permalink / raw)


On http://groups.google.com/groups?hl=nl&lr=&threadm=wvbr657egsa1.fsf%40sun.com&prev=/groups%3Fnum%3D25%26hl%3Dnl%26lr%3D%26group%3Dcomp.lang.ada%26start%3D300
I read

> First, is it correct to say that Ada access types are more
> similar to C++ references (T&) than they are to C/C++
> pointers (T*) ?

No. Ada access types are very similar to C and C++ pointers, and are
typically implemented and used in (almost) exactly the same way.

On http://groups.google.com/groups?hl=nl&lr=&threadm=ss%25ad.1636%246k2.1252%40newsread3.news.pas.earthlink.net&prev=/groups%3Fhl%3Dnl%26lr%3D%26group%3Dcomp.lang.ada
I read

Well an access is not a pointer. System.Address is a pointer.  There
are
functions to convert an access to an Address..An access may contain
additional informations apart from the pointer - like size of the
object
pointed to (for indefinite objects), a reference counter (for access
all or
anonymous access) etc. pp. 

I think that not the same definition??
Can anybody tell me the exact difference between pointer in C++ and
access/address types in Ada???



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

end of thread, other threads:[~2004-10-22  1:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20 13:56 address/access/pointer confusion Hans Van den Eynden
2004-10-20 16:55 ` Martin Krischik
2004-10-20 18:51 ` skidmarks
2004-10-20 23:37   ` Georg Bauhaus
2004-10-21  7:30   ` Jacob Sparre Andersen
2004-10-22  1:14     ` Jeffrey Carter

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