From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c8360a2ce0e343cc,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: onsbomma@hotmail.com (Hans Van den Eynden) Newsgroups: comp.lang.ada Subject: address/access/pointer confusion Date: 20 Oct 2004 06:56:15 -0700 Organization: http://groups.google.com Message-ID: <1c2f5137.0410200556.70a1518c@posting.google.com> NNTP-Posting-Host: 134.58.253.194 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1098280575 30376 127.0.0.1 (20 Oct 2004 13:56:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 Oct 2004 13:56:15 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:5519 Date: 2004-10-20T06:56:15-07:00 List-Id: 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???