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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9506bdc34331969a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!news.k-dsl.de!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: put of access type Date: Thu, 20 Aug 2009 08:08:52 +0200 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <4a8ce874$1@news.post.ch> References: <8sho8596j3qnja38id9ipejk0opkcn5b5m@4ax.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1250748535 23944 194.41.146.1 (20 Aug 2009 06:08:55 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Thu, 20 Aug 2009 06:08:55 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <8sho8596j3qnja38id9ipejk0opkcn5b5m@4ax.com> X-Original-NNTP-Posting-Host: w04asc.pnet.ch X-Original-Trace: 20 Aug 2009 08:08:52 +0200, w04asc.pnet.ch Xref: g2news2.google.com comp.lang.ada:7894 Date: 2009-08-20T08:08:52+02:00 List-Id: Rob Solomon schrieb: > I see that access types are being used the same as pointer types, but > if I understand correctly, are actually quite different. But I don't > understand how. ie, how are access types and pointers different? Access types can be smart pointers containing additional informations used by garbage collectors. "Can" only JGNAT (targeting JVM) and MGNAT (targeting CLI) currently feature a garbage collector. Still there is at least one case where standart GNAT uses smart pointers as well. Can't remember the details - but it has to to with anonymous access types used as function parameter (a new feature introduced with Ada 95). With GNAT this access type consist then of an pointer and integer sized extra info. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com